Skip to content

Commit

Permalink
make less brittle
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovai committed Nov 14, 2023
1 parent 0aa8c4b commit a0bfd0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
path: engine/target/x86_64-pc-windows-msvc/release/
- id: hash
run: |
VERSION=$(cat engine/.bumpversion.cfg | grep current_version | cut -d '=' -f 2 | sed 's/[", ]//g')
VERSION=$(cat engine/.bumpversion.cfg | grep "current_version =" | cut -d '=' -f 2 | sed 's/[", ]//g')
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+-canary\.[0-9]+$ ]]; then
echo "Version ($VERSION) is not a pre-release build"
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
path: engine/target/x86_64-pc-windows-msvc/release/
- id: hash
run: |
VERSION=$(cat engine/.bumpversion.cfg | grep current_version | cut -d '=' -f 2 | sed 's/[", ]//g')
VERSION=$(cat engine/.bumpversion.cfg | grep "current_version =" | cut -d '=' -f 2 | sed 's/[", ]//g')
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Version ($VERSION) is not a release build"
exit 1
Expand Down

0 comments on commit a0bfd0c

Please sign in to comment.