File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050
5151jobs :
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 :
You can’t perform that action at this time.
0 commit comments