Skip to content

Commit

Permalink
handle closed PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Jan 25, 2024
1 parent 732b253 commit 76b8ff5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/bump-sec-scanners-config-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ jobs:
while [ $SECONDS -lt $end_time ]; do
pr_state=$(gh pr view ${PR_URL} --json state --jq '.state')
if [ "$pr_state" == "MERGED" ]; then
if [ "$pr_state" == "CLOSED" ]; then
echo "ERROR! PR has been closed!"
elif [ "$pr_state" == "MERGED" ]; then
echo "PR has been merged!"
exit 0
fi
Expand Down

0 comments on commit 76b8ff5

Please sign in to comment.