name: Move Major Release Tag on: release: types: [created] jobs: movetag: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Get major version num and update tag run: | VERSION=${GITEA_REF#refs/tags/} MAJOR=${VERSION%%.*} git config --global user.name 'Matthias Berner' git config --global user.email 'matthiasberner@git.familie-berner.de' git tag -fa ${MAJOR} -m "Update major version tag" git push origin ${MAJOR} --force