.gitea/workflows/major-release-num.yaml aktualisiert

This commit is contained in:
2024-10-11 07:59:34 +02:00
parent 6decb32177
commit 9df2a175b7
+21
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=${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