update base version regular
This commit is contained in:
parent
af79b0e2ec
commit
6b63ed0f8e
1 changed files with 6 additions and 2 deletions
8
.github/workflows/nightly.yml
vendored
8
.github/workflows/nightly.yml
vendored
|
|
@ -26,8 +26,12 @@ jobs:
|
|||
run: |
|
||||
DATE=$(date +%Y%m%d)
|
||||
SHA=$(git rev-parse --short HEAD)
|
||||
BASE_VERSION=$(git describe --tags --match "v*" --exclude "*nightly*" --abbrev=0 2>/dev/null || echo "v0.0.0")
|
||||
VERSION="${BASE_VERSION}-nightly-${DATE}-${SHA}"
|
||||
BASE_VERSION=$(git describe --tags --match "v*" --exclude "*nightly*" --abbrev=0 2>/dev/null || true)
|
||||
if [ -z "$BASE_VERSION" ] || [ "$BASE_VERSION" = "v0.0.0" ]; then
|
||||
VERSION="nightly-${DATE}-${SHA}"
|
||||
else
|
||||
VERSION="${BASE_VERSION}-nightly-${DATE}-${SHA}"
|
||||
fi
|
||||
TAG="nightly-${DATE}-${SHA}"
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue