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
2
.github/workflows/auto_release.yml
vendored
2
.github/workflows/auto_release.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue