diff --git a/.github/workflows/version-tag.yml b/.github/workflows/version-tag.yml index b9c0e71..7e871fa 100644 --- a/.github/workflows/version-tag.yml +++ b/.github/workflows/version-tag.yml @@ -10,4 +10,13 @@ jobs: name: Update Major Version Tag runs-on: ubuntu-latest steps: - - uses: nowactions/update-majorver@v1 \ No newline at end of file + - uses: actions/checkout@v4 + + - name: Get major version num and update tag + run: | + VERSION=${GITHUB_REF#refs/tags/} + MAJOR=${VERSION%%.*} + git config --global user.name 'Will Taylor' + git config --global user.email 'willgeorgetaylor@users.noreply.github.com' + git tag -fa ${MAJOR} -m "Update major version tag" + git push origin ${MAJOR} --force \ No newline at end of file