diff --git a/.github/workflows/versions.yaml b/.github/workflows/versions.yaml index c166508..f2eef7d 100644 --- a/.github/workflows/versions.yaml +++ b/.github/workflows/versions.yaml @@ -9,6 +9,8 @@ jobs: update-major-tag: name: Update major tag runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout code uses: actions/checkout@v5 @@ -31,6 +33,8 @@ jobs: MAJOR=$(expr "$NEW_TAG" : '\(v[0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*$') [ -z "$MAJOR" ] && exit 20 + echo "Creating tag $MAJOR pointing to $NEW_TAG ..." + git fetch --tags git tag -f "$MAJOR" "$NEW_TAG" git push origin "$MAJOR" --force