.gitea/workflows/major-release-num.yml hinzugefügt
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user