.gitea/workflows/major-release-num.yml hinzugefügt

This commit is contained in:
2024-10-11 07:57:00 +02:00
parent 946f9b416f
commit 6ff81ebcd9

View File

@@ -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