Commit 9125998
authored
fix(actions): use repository check instead of event_name for dogfooding conditions (#727)
## Summary
When external repos call the reusable release workflow via
`workflow_call`, the `github.event_name` still reflects the original
trigger (e.g., `workflow_dispatch` from the caller). This caused the
build job and dogfooding steps to incorrectly run for external repos.
This fix changes the conditions to check `github.repository ==
'getsentry/craft'` instead of `github.event_name`, properly
distinguishing Craft's own releases from external callers.
## Changes
- Build job: `github.event_name == 'workflow_dispatch'` →
`github.repository == 'getsentry/craft'`
- Dogfooding step: `github.event_name == 'workflow_dispatch'` →
`github.repository == 'getsentry/craft'`
- External step: `github.event_name == 'workflow_call'` →
`github.repository != 'getsentry/craft'`1 parent d0c3dd9 commit 9125998
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
0 commit comments