ci(publish): restrict workflow to upstream repo only
Prevent publish job from running on forks by gating on github.repository == 'bmad-code-org/BMAD-METHOD'.
This commit is contained in:
parent
7b4875be79
commit
75ec4aa504
|
|
@ -37,7 +37,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
publish:
|
||||
if: github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/main'
|
||||
if: github.repository == 'bmad-code-org/BMAD-METHOD' && (github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/main')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
|||
Loading…
Reference in New Issue