Update auto_release.yml

This commit is contained in:
Gerrit Gogel 2023-09-09 13:35:29 +02:00 committed by GitHub
parent 9d6430856f
commit caad17d776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ jobs:
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
if [[ -n "$LATEST_TAG" ]]; then
PREVIOUS_BUILD=$(echo $LATEST_TAG | awk -F_ '{print $2}')
PREVIOUS_BUILD=$(echo $LATEST_TAG | awk -F_ '{print $2}' | awk -F- '{print $1}')
NEXT_BUILD=$(printf "%03d" $((PREVIOUS_BUILD + 1)))
else
NEXT_BUILD="001"