Skip to content

Commit 8181309

Browse files
committed
Fix condition
1 parent b3d0c6c commit 8181309

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/release-proposal-dispatch.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ env:
5050

5151
jobs:
5252
check-proposal-ongoing:
53-
if: ${{ !inputs.bypass_standard_checks }}
5453
runs-on: ubuntu-latest
5554
steps:
5655
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
@@ -59,15 +58,19 @@ jobs:
5958
fetch-tags: true
6059
- name: Check if a release proposal is ongoing
6160
run: |
62-
# Check if there are any proposal branches or ephemeral release branches (release/*/*)
63-
EXISTING_BRANCHES=$(git branch -r --list "origin/${{ env.PROPOSAL_BRANCH_PREFIX }}/*" "origin/${{ env.RELEASE_BRANCH_PREFIX }}/*/*")
64-
if [ -n "$EXISTING_BRANCHES" ]; then
65-
echo "Error: A release proposal is ongoing. Please cancel it or wait for it to be merged." >&2
66-
echo "Existing branches:"
67-
echo "$EXISTING_BRANCHES"
68-
exit 1
61+
if [ "${{ inputs.bypass_standard_checks }}" = "true" ]; then
62+
echo "Skipping ongoing release proposal checks."
63+
else
64+
# Check if there are any proposal branches or ephemeral release branches (release/*/*)
65+
EXISTING_BRANCHES=$(git branch -r --list "origin/${{ env.PROPOSAL_BRANCH_PREFIX }}/*" "origin/${{ env.RELEASE_BRANCH_PREFIX }}/*/*")
66+
if [ -n "$EXISTING_BRANCHES" ]; then
67+
echo "Error: A release proposal is ongoing. Please cancel it or wait for it to be merged." >&2
68+
echo "Existing branches:"
69+
echo "$EXISTING_BRANCHES"
70+
exit 1
71+
fi
72+
echo "No release proposal is ongoing."
6973
fi
70-
echo "No release proposal is ongoing."
7174
7275
check-membership:
7376
permissions:

0 commit comments

Comments
 (0)