diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7712f661..cd3ebfa5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,7 @@ on: jobs: # Build job only for Craft's own releases (dogfooding) build: - if: github.event_name == 'workflow_dispatch' + if: github.repository == 'getsentry/craft' name: Build uses: ./.github/workflows/build.yml permissions: @@ -114,7 +114,7 @@ jobs: # For Craft's own releases: use local action (dogfooding) - name: Prepare release (dogfooding) - if: github.event_name == 'workflow_dispatch' + if: github.repository == 'getsentry/craft' id: craft-local uses: ./ env: @@ -125,7 +125,7 @@ jobs: # For external repos: use published action - name: Prepare release - if: github.event_name == 'workflow_call' + if: github.repository != 'getsentry/craft' id: craft-action uses: getsentry/craft@v2 env: