Update .github/workflows/nightly.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
c096cc1581
commit
c1f4eb0c21
1 changed files with 2 additions and 1 deletions
3
.github/workflows/nightly.yml
vendored
3
.github/workflows/nightly.yml
vendored
|
|
@ -26,7 +26,8 @@ jobs:
|
|||
run: |
|
||||
DATE=$(date +%Y%m%d)
|
||||
SHA=$(git rev-parse --short HEAD)
|
||||
VERSION="v0.1.0-nightly-${DATE}-${SHA}"
|
||||
BASE_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
|
||||
VERSION="${BASE_VERSION}-nightly-${DATE}-${SHA}"
|
||||
TAG="nightly-${DATE}-${SHA}"
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue