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:
208
208
for i in {1..20}; do
209
209
echo "Checking if PR can be auto-merged. Try: $i"
210
210
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
+
211
218
echo "Fetching checks"
212
219
cs_response=$(curl -sL \
213
220
--fail-with-body \
@@ -266,6 +273,10 @@ jobs:
266
273
267
274
echo "Fetching..."
268
275
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
269
280
270
281
expected_commit="${{ needs.update.outputs.update_branch_merged_commit }}"
271
282
actual_commit=$(git rev-parse origin/${{ env.UPDATE_BRANCH_MERGED }})
You can’t perform that action at this time.
0 commit comments