Skip to content

Commit dacc21e

Browse files
committed
ci: restrict release workflows to main branch only
Add if: github.ref == 'refs/heads/main' to both release / create-pr and release / pre jobs. Running from a feature branch will skip immediately.
1 parent 5b84c16 commit dacc21e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/stable-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ env:
3030

3131
jobs:
3232
create-release-pr:
33+
if: github.ref == 'refs/heads/main'
3334
runs-on: ubuntu-latest
3435
timeout-minutes: 15
3536
steps:

0 commit comments

Comments
 (0)