Drop the unused TAGGED job env from the release workflow #14
No reviewers
Labels
No labels
⏳in-progress
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 1 minute 18 seconds
Due date
geusebio
1 minute 18 seconds
No due date set.
Dependencies
No dependencies set
Reference
Grey.ooo/someones.computer_agent!14
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/drop-unused-tagged-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
goreleaserjob set aTAGGEDenv var and nothing ever read it. All threesteps that care about the tag test spell it out inline instead:
ReleasestartsWith(github.ref, 'refs/tags/v')Build a snapshot!startsWith(github.ref, 'refs/tags/v')Mirror to someones.computerCHANNEL: ${{ startsWith(...) && 'stable' || 'dev' }}Removed rather than threaded through those conditions, because only two of the
three could have used it — the
envcontext is not available whereCHANNELisdefined, so a variable named for the tag test would still have left that test
written out longhand. That half-application is what let it sit unread.
No behaviour change. The conditions and the channel selection are byte-identical;
only the two dead lines are gone.
Verified
TAGGEDreference remains anywhere in the repo.checkout → setup-go → Install GoReleaser → Release → Build a snapshot →
Mirror to someones.computer.
go vet ./...andgo test ./...are clean (untouched by this, checked anyway).Not tagged
[skip ci]: a change to a workflow file is a CI change howeverdocs-like it looks.
Spotted while driving #13 to green.