Commit 70267ba
committed
fix: force-tag full release and gate discussion on publish
## What
Added -f flag to full tag creation and push in the create_release job,
and gated the release_discussion job on inputs.publish.
## Why
Without -f, workflow reruns fail with "tag already exists" when the full
tag was created before a downstream job failed. The short tag already
used -f, so this was an inconsistency. The discussion job ran
unconditionally, which would announce draft releases publicly before
they were published.
## Notes
- Force-pushing tags rewrites git history for that tag — acceptable here since the tag points to the same commit on rerun
- Callers using `publish: false` will no longer get discussion announcements, which is a behavior change for any existing consumers relying on that
Signed-off-by: jmeridth <jmeridth@gmail.com>1 parent 8905ed5 commit 70267ba
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments