mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
Update auto_release.yml
This commit is contained in:
parent
9d6430856f
commit
caad17d776
4
.github/workflows/auto_release.yml
vendored
4
.github/workflows/auto_release.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue