Skip to content

Commit 0176e3e

Browse files
committed
ci: auto-update major version tag for GitHub Action on release
1 parent 526c4c8 commit 0176e3e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ jobs:
6666
git push origin "${TAG}"
6767
fi
6868
69+
- name: Update major version tag for GitHub Action
70+
if: steps.check.outputs.published == 'false'
71+
run: |
72+
MAJOR="v$(echo "${{ steps.check.outputs.version }}" | cut -d. -f1)"
73+
git tag -f "${MAJOR}"
74+
git push origin "${MAJOR}" --force
75+
6976
- name: Create GitHub Release
7077
if: steps.check.outputs.published == 'false'
7178
run: |

0 commit comments

Comments
 (0)