Skip to content

Commit 0a9778c

Browse files
committed
ci(release): only allow release on release branch
1 parent da6c209 commit 0a9778c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
issues: write
2020
pull-requests: write
2121
steps:
22+
- name: Fail if branch is not release
23+
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/release'
24+
run: |
25+
echo "This workflow should not be triggered with workflow_dispatch on a branch other than release"
26+
exit 1
27+
2228
- name: Check out the code 🗄
2329
uses: actions/checkout@v4
2430
with:

0 commit comments

Comments
 (0)