File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ jobs:
6262 runs-on : ${{ matrix.runner }}
6363 timeout-minutes : 45
6464 steps :
65- # # Manual (workflow_dispatch) releases must only run from main, never from
66- # # an arbitrary branch that could carry unreviewed release logic. Guarding
67- # # the first job blocks the whole pipeline (release needs build-natives).
68- # - name: Verify release branch
69- # run: |
70- # if [[ "$GITHUB_REF_NAME" != "main" ]]; then
71- # echo "::error::Releases must run from the main branch, got '$GITHUB_REF_NAME'"
72- # exit 1
73- # fi
65+ # Manual (workflow_dispatch) releases must only run from main, never from
66+ # an arbitrary branch that could carry unreviewed release logic. Guarding
67+ # the first job blocks the whole pipeline (release needs build-natives).
68+ - name : Verify release branch
69+ run : |
70+ if [[ "$GITHUB_REF_NAME" != "main" ]]; then
71+ echo "::error::Releases must run from the main branch, got '$GITHUB_REF_NAME'"
72+ exit 1
73+ fi
7474
7575 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7676
Original file line number Diff line number Diff line change @@ -74,12 +74,12 @@ jobs:
7474 steps :
7575 # Manual (workflow_dispatch) releases must only run from main, never from
7676 # an arbitrary branch that could carry unreviewed release logic.
77- # - name: Verify release branch
78- # run: |
79- # if [[ "$GITHUB_REF_NAME" != "main" ]]; then
80- # echo "::error::Releases must run from the main branch, got '$GITHUB_REF_NAME'"
81- # exit 1
82- # fi
77+ - name : Verify release branch
78+ run : |
79+ if [[ "$GITHUB_REF_NAME" != "main" ]]; then
80+ echo "::error::Releases must run from the main branch, got '$GITHUB_REF_NAME'"
81+ exit 1
82+ fi
8383
8484 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
8585 with :
You can’t perform that action at this time.
0 commit comments