Skip to content

Commit

Permalink
ci: restrict release workflow to main
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mhuster23 committed Dec 21, 2023
1 parent 56655da commit 27d7e8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
release:
name: Run semantic release
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 27d7e8c

Please sign in to comment.