Skip to content

Commit

Permalink
dbp-557- Extract major and minor versions
Browse files Browse the repository at this point in the history
sahassou committed Feb 15, 2024
1 parent 2a4a4d9 commit ae1e530
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/auto-tag-release.yaml
Original file line number Diff line number Diff line change
@@ -22,4 +22,14 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
major_version_tag_only: false # true wenn nur Major-Tags wird aktualisiert oder erstellt
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Extract major and minor versions
id: version
run: |
TAG=${GITHUB_REF#refs/tags/}
MAJOR=$(echo $TAG | cut -d. -f1)
MINOR=$MAJOR.$(echo $TAG | cut -d. -f2)
echo "::set-output name=major::$MAJOR"
echo "::set-output name=minor::$MINOR"
echo "::set-output name=tag::$TAG"

0 comments on commit ae1e530

Please sign in to comment.