Commit 8e458dc
fix: harden major-tag update (release: published) (#135)
* fix: trigger major-tag update on tag push instead of release published
The release: published event is suppressed by GITHUB_TOKEN anti-recursion
when a release is published by automation, which left v8 stuck on v8.3.7
after the v8.3.8 release (build-image.yaml@v8 then lacked the timeoutMinutes
input, breaking kubernetes.yaml@v8.3.8 consumers).
Trigger on the semver tag push instead (created only on publish, never on
drafts), derive the version from the pushed ref, and add a workflow_dispatch
recovery lever to realign the major tag manually.
* fix: use glob tag filter and guard against tag deletions
Address review feedback:
- on.push.tags uses glob syntax, not regex; v[0-9]+.[0-9]+.[0-9]+ required a
literal '+' and would never match v8.3.8. Use v[0-9]*.[0-9]*.[0-9]* and
enforce the exact vX.Y.Z shape in the script (also skips pre-releases).
- push fires on tag deletion too; add a job-level guard so it only runs on
tag creation or manual dispatch.
* chore: trim comments to incident-critical notes only
* fix: harden release-published major-tag update
Keep release: published (releases are created manually by a human, so the
GITHUB_TOKEN suppression does not apply), but harden the weak parts:
- take the version from github.event.release.tag_name instead of fragile
git describe topology guessing
- enforce strict vX.Y.Z semver and skip pre-releases
- add workflow_dispatch recovery lever to realign the major tag by hand
- idempotent git tag -f + force-push instead of delete-then-recreate
* chore: add tag trigger to the pipeline
---------
Co-authored-by: Andreas Beuge <andreasbeuge@abs-bmbp.fritz.box>1 parent ab24c1c commit 8e458dc
1 file changed
Lines changed: 23 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 | | |
7 | 19 | | |
8 | 20 | | |
9 | 21 | | |
| 22 | + | |
10 | 23 | | |
11 | 24 | | |
12 | 25 | | |
| |||
15 | 28 | | |
16 | 29 | | |
17 | 30 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
22 | 38 | | |
23 | 39 | | |
24 | 40 | | |
25 | 41 | | |
| 42 | + | |
26 | 43 | | |
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 47 | + | |
| 48 | + | |
0 commit comments