We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9e50d commit e0a54dfCopy full SHA for e0a54df
.github/workflows/release.yml
@@ -54,8 +54,15 @@ jobs:
54
run: |
55
git config user.name "github-actions[bot]"
56
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
57
- git tag -f v1 "$TAG_NAME"
58
- git push origin v1 --force
+
+ MAJOR_TAG="${TAG_NAME%%.*}"
59
+ if [[ -z "${MAJOR_TAG}" || "${MAJOR_TAG}" == "${TAG_NAME}" ]]; then
60
+ echo "::warning::Unable to determine major tag from ${TAG_NAME}; skipping floating tag update."
61
+ exit 0
62
+ fi
63
64
+ git tag -f "${MAJOR_TAG}" "$TAG_NAME"
65
+ git push origin "${MAJOR_TAG}" --force
66
67
- name: Publish GitHub release
68
if: startsWith(github.ref, 'refs/tags/')
0 commit comments