Skip to content

Commit 7ee6d63

Browse files
authored
Merge pull request #31 from ldetmer/ldetmer-patch-15
fix: Update wait-for-merge.sh
2 parents 8604403 + 9fa73a8 commit 7ee6d63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pr-ready/wait-for-merge.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ check_pr_status() {
1919
PR_DATA=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "$API_URL")
2020
if echo "$PR_DATA" | grep -q '"merged": true'; then
2121
echo "Pull request is merged."
22-
return 0
22+
return 1
2323
else
2424
echo "Pull request is not merged. Checking again in 60 seconds..."
2525
sleep 60
26+
return 0
2627
fi
2728
}
2829

0 commit comments

Comments
 (0)