Commit 30800cd
ci: idempotent tag step — check remote, not local clone
actions/checkout@v4 does not fetch tags by default, so the previous
`git rev-parse "$RELEASE_VERSION"` always missed and the step then
failed at `git push origin <tag>` with "(already exists)" whenever a
non-bumping commit landed on master (docs change, README tweak,
workflow tweak, etc).
Check the remote directly with `git ls-remote --exit-code --tags`.
The non-zero exit selects the push branch; zero exit (tag present)
skips the tag operation. The release pipeline is now idempotent
across multiple pushes at the same version.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1db32a0 commit 30800cd
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
0 commit comments