File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,13 @@ jobs:
208208 for i in {1..20}; do
209209 echo "Checking if PR can be auto-merged. Try: $i"
210210
211+ echo "Checking if update-branch-merged exists"
212+ git fetch
213+ if [[ $(git rev-parse origin/${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
214+ echo "Branch origin/${{ env.UPDATE_BRANCH_MERGED }} is missing"
215+ exit 0
216+ fi
217+
211218 echo "Fetching checks"
212219 cs_response=$(curl -sL \
213220 --fail-with-body \
@@ -266,6 +273,10 @@ jobs:
266273
267274 echo "Fetching..."
268275 git fetch
276+ if [[ $(git rev-parse origin/${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
277+ echo "Branch origin/${{ env.UPDATE_BRANCH_MERGED }} is missing"
278+ exit 0
279+ fi
269280
270281 expected_commit="${{ needs.update.outputs.update_branch_merged_commit }}"
271282 actual_commit=$(git rev-parse origin/${{ env.UPDATE_BRANCH_MERGED }})
You can’t perform that action at this time.
0 commit comments