We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b43ca commit 0ca2986Copy full SHA for 0ca2986
1 file changed
.github/workflows/versions.yaml
@@ -9,6 +9,8 @@ jobs:
9
update-major-tag:
10
name: Update major tag
11
runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
14
steps:
15
- name: Checkout code
16
uses: actions/checkout@v5
@@ -31,6 +33,8 @@ jobs:
31
33
MAJOR=$(expr "$NEW_TAG" : '\(v[0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*$')
32
34
[ -z "$MAJOR" ] && exit 20
35
36
+ echo "Creating tag $MAJOR pointing to $NEW_TAG ..."
37
+
38
git fetch --tags
39
git tag -f "$MAJOR" "$NEW_TAG"
40
git push origin "$MAJOR" --force
0 commit comments