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 echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
if [[ -n "$LATEST_TAG" ]]; then 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))) NEXT_BUILD=$(printf "%03d" $((PREVIOUS_BUILD + 1)))
else else
NEXT_BUILD="001" NEXT_BUILD="001"
@ -93,4 +93,4 @@ jobs:
-t ${{ env.FOLDER_CHANGED }}-${{ env.SEAFILE_VERSION }}_${{ env.NEXT_BUILD }} \ -t ${{ env.FOLDER_CHANGED }}-${{ env.SEAFILE_VERSION }}_${{ env.NEXT_BUILD }} \
-F RELEASE_NOTES.md \ -F RELEASE_NOTES.md \
--draft=false \ --draft=false \
--prerelease=false --prerelease=false