From 76b8ff500a929e538f78b6562facfe63f46d06b9 Mon Sep 17 00:00:00 2001 From: Friedrich Wilken Date: Thu, 25 Jan 2024 10:22:04 +0100 Subject: [PATCH] handle closed PRs --- .github/workflows/bump-sec-scanners-config-reusable.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump-sec-scanners-config-reusable.yml b/.github/workflows/bump-sec-scanners-config-reusable.yml index 0ad4861..32af35b 100644 --- a/.github/workflows/bump-sec-scanners-config-reusable.yml +++ b/.github/workflows/bump-sec-scanners-config-reusable.yml @@ -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