Skip to content

Commit

Permalink
[no ci] fixed syntax for bash version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jofas committed Apr 22, 2023
1 parent 6f8a11b commit 2fb534c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
- name: Extract Cargo.toml Version
run: echo "CRATE_VERSION=$(toml get -r Cargo.toml package.version)" >> "$GITHUB_ENV"
- name: Check Version
run: |
[ "${{ format('v{0}', env.CRATE_VERSION) }}" == "${{ github.ref_name }}" ]
run: test ${{ format('v{0}', env.CRATE_VERSION) }} == ${{ github.ref_name }}
- name: Publish
run: cargo publish
env:
Expand Down

0 comments on commit 2fb534c

Please sign in to comment.