Commit 0e231e8
fix: add major version tag update to release workflow (#465)
* fix: add major version tag update to release workflow
## What
Added an `update_major_tag` job to the release workflow that force-updates
the floating major version tag (e.g., `v9`) to point to the latest release
tag after each release is published.
## Why
Releases created by `github-actions[bot]` using `GITHUB_TOKEN` do not
trigger downstream workflows due to GitHub's anti-cascade protection. The
standalone `major-version-updater.yml` workflow, which listens for
`release: published` events, was never firing for v9.x releases. Moving
the logic into the release workflow itself ensures the major tag update
runs as part of the same pipeline.
## Notes
- The standalone `major-version-updater.yml` is intentionally kept as a manual `workflow_dispatch` fallback
- The job guards on `needs.release.outputs.full-tag != ''` to skip when no release is produced
- Unlike the standalone workflow, this does NOT set `persist-credentials: false` on checkout — credentials are needed for `git push`
Co-Authored-By: Kenyatta <153775386+Kenyatta-forbes@users.noreply.github.com>
Signed-off-by: jmeridth <jmeridth@gmail.com>
* fix: set persist-credentials to true for major tag update workflows
## What
Changed `persist-credentials` from `false` to `true` in the standalone
`major-version-updater.yml` and explicitly set it to `true` in the new
`update_major_tag` job in `release.yml`.
## Why
The standalone workflow fails on `git push` with "could not read Username"
because `persist-credentials: false` strips the git credentials after
checkout. Both workflows need credentials to force-push the major version tag.
## Notes
- The standalone workflow has been broken since the `persist-credentials: false` change was introduced, which is why all manual dispatch runs in April 2025 failed before succeeding (credentials were likely configured differently in the successful runs)
- `persist-credentials: true` is the default for `actions/checkout`, but being explicit here documents the intentional choice since `git push` depends on it
Co-Authored-By: Kenyatta <153775386+Kenyatta-forbes@users.noreply.github.com>
Signed-off-by: jmeridth <jmeridth@gmail.com>
* fix: simplify major tagging with existing output
Signed-off-by: jmeridth <jmeridth@gmail.com>
---------
Signed-off-by: jmeridth <jmeridth@gmail.com>
Co-authored-by: Kenyatta <153775386+Kenyatta-forbes@users.noreply.github.com>1 parent 2f55ec4 commit 0e231e8
2 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 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 | + | |
38 | 65 | | |
39 | 66 | | |
40 | 67 | | |
| |||
0 commit comments