ci: maintain a floating v1 major-version tag on release
publish.yaml / publish (push) Successful in 8s
publish.yaml / publish (push) Successful in 8s
Lets consumers pin actions to @v1 instead of an exact vX.Y.Z, so they pick up fixes automatically without per-repo version bumps.
This commit is contained in:
@@ -24,6 +24,9 @@ jobs:
|
|||||||
git add VERSION
|
git add VERSION
|
||||||
git diff --cached --quiet || git commit -m "chore: bump version [skip ci]"
|
git diff --cached --quiet || git commit -m "chore: bump version [skip ci]"
|
||||||
version=$(cat VERSION)
|
version=$(cat VERSION)
|
||||||
|
major="${version%%.*}"
|
||||||
git tag "v${version}"
|
git tag "v${version}"
|
||||||
|
git tag -f "v${major}"
|
||||||
git push
|
git push
|
||||||
git push --tags
|
git push origin "refs/tags/v${version}"
|
||||||
|
git push --force origin "refs/tags/v${major}"
|
||||||
|
|||||||
Reference in New Issue
Block a user