Commit 5d4aaf5
authored
๐ ci: detect floating tags via exact ref endpoint (#30)
The floating-tag workflow added in #29 moved `v1` correctly but failed
to create `v1.0`, exiting with HTTP 422. ๐ The existence check queried
`git/refs/tags/<ref>`, the plural list endpoint, which prefix-matches:
`tags/v1.0` matched the existing `v1.0.x` releases, so the script
believed `v1.0` already existed and tried to `PATCH` a ref that was
never there.
Switching the check to the singular `git/ref/tags/<ref>` endpoint makes
it exact: an absent floating tag returns 404, so the script falls
through to creating it. `v1` already points at `v1.0.4` from the first
dispatch; re-running after this merge will create the missing `v1.0`.1 parent 216fdb1 commit 5d4aaf5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments