Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change version number for nightly releases #1367

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,9 @@ jobs:
-
name: Set Nightly Version
run: |
tag_commit=$(git rev-list --abbrev-commit --tags --max-count=1)
tag=$(git describe --abbrev=0 --tags "$tag_commit")
version=$(git describe --long --tags --always --match 'v[0-9]\.*')-nightly
commit=$(git rev-parse --short HEAD)
ts=$(date +%s)
version=$(echo $version | sed "s/$tag/$tag.$ts/")
# example: v0.6.0-alpha1.1667814448-8-gcd772be-nightly
version="v999.0.0-$ts.$commit.nightly"
echo "VERSION=$version" >> $GITHUB_ENV
echo "### $version :rocket:" >> $GITHUB_STEP_SUMMARY
-
Expand Down