From 2fb534ceae4b6299b8095ea862ae9f43330a6c0f Mon Sep 17 00:00:00 2001 From: jofas Date: Sat, 22 Apr 2023 19:06:03 +0200 Subject: [PATCH] [no ci] fixed syntax for bash version comparison --- .github/workflows/publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 147d732..bae3cf9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: