mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Fix the command used for nightly release versions. (#4498)
This commit is contained in:
@@ -81,18 +81,18 @@ jobs:
|
||||
--attempts=5 --jobs-on-last-attempt=4 \
|
||||
test -c opt --remote_download_toplevel \
|
||||
--pre_release=nightly --nightly_date=${{ env.nightly_date }} \
|
||||
//toolchain/install:prefix_root/bin/carbon \
|
||||
//toolchain \
|
||||
//toolchain/install:carbon_toolchain_tar_gz_rule \
|
||||
//toolchain/install:carbon_toolchain_tar_gz_test
|
||||
|
||||
- name: Extract the release version
|
||||
run: |
|
||||
# Make sure we can run the toolchain to get the version.
|
||||
./bazel-bin/toolchain/install/prefix_root/bin/carbon version
|
||||
./bazel-bin/toolchain/install/run_carbon version
|
||||
|
||||
# Now stash it in a variable and export it.
|
||||
VERSION=$( \
|
||||
./bazel-bin/toolchain/install/prefix_root/bin/carbon version \
|
||||
./bazel-bin/toolchain/install/run_carbon version \
|
||||
| cut -d' ' -f5 | cut -d'+' -f1)
|
||||
echo "release_version=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
|
||||
Reference in New Issue
Block a user