Skip to content

Commit 02a4963

Browse files
ci: require main branch for release workflow
1 parent 9ca82b8 commit 02a4963

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15+
- name: Ensure release runs on main
16+
if: github.ref_name != 'main'
17+
run: |
18+
echo "Release workflow must be triggered on the main branch."
19+
exit 1
20+
1521
- name: Checkout
1622
uses: actions/checkout@v4
1723

0 commit comments

Comments
 (0)