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:
Alex Verkhovsky 2026-03-12 11:00:52 -06:00
parent 7b4875be79
commit 75ec4aa504
1 changed files with 1 additions and 1 deletions

View File

@ -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