diff --git a/.gitea/workflows/major-release-num.yml b/.gitea/workflows/major-release-num.yml new file mode 100644 index 0000000..ef0b6ed --- /dev/null +++ b/.gitea/workflows/major-release-num.yml @@ -0,0 +1,21 @@ +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=${GITHUB_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 \ No newline at end of file