Skip to content

Commit 27d7e8c

Browse files
committed
ci: restrict release workflow to main
While the schedule trigger only works on the default branch, the workflow_dispatch trigger can still be run on other branches. This is a precaution to not accidentally run it on a different branch.
1 parent 56655da commit 27d7e8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
release:
99
name: Run semantic release
1010
runs-on: ubuntu-latest
11+
if: ${{ github.ref == 'refs/heads/main' }}
1112
steps:
1213
- name: Checkout
1314
uses: actions/checkout@v3

0 commit comments

Comments
 (0)