From caad17d776d152b8e8452083dfcab893fdf08815 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Sat, 9 Sep 2023 13:35:29 +0200 Subject: [PATCH] Update auto_release.yml --- .github/workflows/auto_release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto_release.yml b/.github/workflows/auto_release.yml index 77c94ac..9b667ef 100644 --- a/.github/workflows/auto_release.yml +++ b/.github/workflows/auto_release.yml @@ -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" @@ -93,4 +93,4 @@ jobs: -t ${{ env.FOLDER_CHANGED }}-${{ env.SEAFILE_VERSION }}_${{ env.NEXT_BUILD }} \ -F RELEASE_NOTES.md \ --draft=false \ - --prerelease=false \ No newline at end of file + --prerelease=false