Skip to content

Commit a001207

Browse files
bugerclaude
andauthored
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

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
goreleaser:
3939
needs:
4040
- dep-guard
41-
if: github.event.pull_request.draft == false
41+
if: |
42+
!cancelled() &&
43+
(needs.dep-guard.result == 'success' || needs.dep-guard.result == 'skipped') &&
44+
github.event.pull_request.draft == false
4245
name: '${{ matrix.golang_cross }}'
4346
runs-on: ${{ vars.DEFAULT_RUNNER }}
4447
permissions:

0 commit comments

Comments
 (0)