Commit 5bfad7d
Add auto-tag workflow that fires when plugin.json version bumps on main
Closes the failure mode the repo hit between v1.12 and v1.20.0: plugin.json
version was bumped through several PRs (1.13, 1.14, ..., 1.19) without
anyone manually tagging, so release.yml never fired and the latest GitHub
release zip drifted weeks behind main. Codex flagged this as P1 in its
follow-up audit (#75) and the manual fix was to push v1.20.0 by hand.
The new workflow .github/workflows/auto-tag-on-plugin-bump.yml runs on
every push to main where .claude-plugin/plugin.json changed:
1. Reads the version field via jq, validates it as semver-like (X.Y.Z).
2. Checks whether refs/tags/v<version> already exists - skips if so
(handles the case where someone manually pre-tagged).
3. Otherwise creates an annotated tag pointing at the merge commit and
pushes it. release.yml then auto-fires from the new tag and publishes
cloud-finops-v<version>.zip.
Permissions: contents: write (needed to push the tag). The default
GITHUB_TOKEN is sufficient.
Operational note: the tag is created by github-actions[bot] so the commit
history shows the bot as the tagger. The release body is still auto-
populated by release.yml's generate_release_notes flag, so the human-
visible release page gets the usual PR / commit summary.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7ad3470 commit 5bfad7d
1 file changed
Lines changed: 83 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments