Skip to content

Commit e471372

Browse files
author
Fabiana Severin
committed
ci: restore main-only release branch guard
1 parent cbb4dd0 commit e471372

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/release-runtime-interface-client.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)