Skip to content

Commit dc91c06

Browse files
committed
simpler grep
1 parent aa37cb7 commit dc91c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Install rust toolchains for host
5858
run: |
5959
# Detect the current version of rust
60-
version="$(grep 'DEFAULT_RUST_VERSION =' ./rust/private/common.bzl | sed 's/DEFAULT_RUST_VERSION = "//' | sed 's/"//')"
60+
version="$(grep 'DEFAULT_RUST_VERSION =' ./rust/private/common.bzl | grep -o '[[:digit:].]\+')"
6161
rustup override set "${version}"
6262
rustup update stable && rustup default stable
6363
- name: Setup macos build tooling
@@ -99,7 +99,7 @@ jobs:
9999
path: ${{ github.workspace }}/crate_universe/target/artifacts
100100
- name: Detect the current version
101101
run: |
102-
version="$(grep 'VERSION =' ${{ github.workspace }}/version.bzl | sed 's/VERSION = "//' | sed 's/"//')"
102+
version="$(grep 'VERSION =' ${{ github.workspace }}/version.bzl | grep -o '[[:digit:].]\+')"
103103
echo "RELEASE_VERSION=${version}" >> $GITHUB_ENV
104104
- name: Create the rules archive
105105
run: |

0 commit comments

Comments
 (0)