mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 06:47:25 +08:00
Fix auto-merge PRs to avoid race condition (#10933)
Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
committed by
GitHub
parent
6de3ad0aa4
commit
f6d39a68b4
2
.github/workflows/ci-pipeline.yaml
vendored
2
.github/workflows/ci-pipeline.yaml
vendored
@@ -45,7 +45,7 @@ jobs:
|
||||
num_charts_changed="$(echo "$charts_dirs_changed" | grep -c "bitnami" || true)"
|
||||
num_version_bumps="$(echo "$files_changed_data" | jq -r '[.[] | select(.filename|endswith("Chart.yaml")) | select(.patch|contains("+version")) ] | length' )"
|
||||
|
||||
if [[ ${{ github.actor }} = "bitnami-bot" && "$latest_commit_message" == *"readme-generator-for-helm"* ]]; then
|
||||
if [[ ${{ github.event.action }} = "synchronize" && ${{ github.actor }} = "bitnami-bot" && "$latest_commit_message" == *"readme-generator-for-helm"* ]]; then
|
||||
echo "::set-output name=result::skip"
|
||||
elif [[ "$num_charts_changed" -ne "$num_version_bumps" ]]; then
|
||||
# Changes done in charts but version not bumped -> ERROR
|
||||
|
||||
Reference in New Issue
Block a user