Update auto_release.yml

This commit is contained in:
Gerrit Gogel 2023-10-19 12:31:05 +02:00
parent 65b2a279a7
commit a8d7b9873c

View file

@ -24,7 +24,7 @@ jobs:
- name: Get Previous Tag and Build Number - name: Get Previous Tag and Build Number
id: build_number id: build_number
run: | run: |
LATEST_TAG=$(git describe --tags --abbrev=0 --match "${{ matrix.folder }}-*" 2>/dev/null) LATEST_TAG=$(git describe --tags --abbrev=0 --match "${{ matrix.folder }}-[0-9]*" 2>/dev/null)
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
PREVIOUS_VERSION=$(echo $LATEST_TAG | awk -F'[-_]' '{print $(NF-1)}') PREVIOUS_VERSION=$(echo $LATEST_TAG | awk -F'[-_]' '{print $(NF-1)}')