Commit a001207
fix: goreleaser skipped on push/tag when dep-guard is skipped (#8007)
## URGENT FIX
The goreleaser job is being skipped on push/tag/schedule events because:
1. dep-guard only runs on PRs (`if: github.event_name ==
'pull_request'`)
2. goreleaser has `needs: [dep-guard]`
3. goreleaser's `if` doesn't handle the skipped state
This breaks ALL release builds on master and release branches.
### Fix
Add explicit condition to handle skipped dep-guard:
```yaml
if: |
!cancelled() &&
(needs.dep-guard.result == 'success' || needs.dep-guard.result == 'skipped') &&
github.event.pull_request.draft == false
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fe0d2e0 commit a001207
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments