From 0e2cc1a4c795f3ad307f069b1d35e3ef9c3ee381 Mon Sep 17 00:00:00 2001 From: jofas Date: Sat, 22 Apr 2023 18:36:56 +0200 Subject: [PATCH] Fix wrong env variable --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d7d9f97..147d732 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,10 +20,10 @@ jobs: - name: Install toml-cli run: cargo install toml-cli - name: Extract Cargo.toml Version - run: echo "VERSION=$(toml get -r Cargo.toml package.version)" >> "$GITHUB_ENV" + run: echo "CRATE_VERSION=$(toml get -r Cargo.toml package.version)" >> "$GITHUB_ENV" - name: Check Version run: | - [ "${{ format('v{0}', env.CARGO_VERSION) }}" == "${{ github.ref_name }}" ] + [ "${{ format('v{0}', env.CRATE_VERSION) }}" == "${{ github.ref_name }}" ] - name: Publish run: cargo publish env: