diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index c1e2b1e..4ee3bb4 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -85,7 +85,7 @@ jobs: if [ "$BLOCKED" -eq 0 ] && [ "$has_label" != "true" ]; then echo "Marking as awaiting-review" gh pr edit "$PR_NUM" --add-label "awaiting-review" --remove-label "blocked" || true - else + elif [ "$BLOCKED" -eq 1 ]; then echo "Marking as blocked" gh pr edit "$PR_NUM" --add-label "blocked" --remove-label "awaiting-review" if ! comment_exists; then @@ -94,6 +94,8 @@ jobs: else echo "Found comment, skipping commenting" fi + else + echo "Nothing to do" fi done env: