From 0955c6fb5c17e1dd874c560e5bc623035abc0e16 Mon Sep 17 00:00:00 2001 From: Stefanuk12 <42220813+Stefanuk12@users.noreply.github.com> Date: Tue, 22 Apr 2025 16:17:03 +0100 Subject: [PATCH] fix: convert all usage of `env.VERSION` --- .github/workflows/release.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8ff9b95..0b6cd54 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,8 +50,6 @@ jobs: - name: Ensure not published id: ensure_not_published shell: bash - env: - VERSION: ${{ steps.extract_version.outputs.VERSION }} run: | CRATE_NAME="${{ env.CRATE_NAME }}" if [ ${#CRATE_NAME} -eq 1 ]; then @@ -64,7 +62,7 @@ jobs: DIR="${CRATE_NAME:0:2}/${CRATE_NAME:2:2}" fi - FOUND=$(curl -sSL --fail-with-body "https://index.crates.io/$DIR/${{ env.CRATE_NAME }}" | jq -s 'any(.[]; .vers == "${{ env.VERSION }}")') + FOUND=$(curl -sSL --fail-with-body "https://index.crates.io/$DIR/${{ env.CRATE_NAME }}" | jq -s 'any(.[]; .vers == "${{ steps.extract_version.outputs.value }}")') echo "FOUND=$FOUND" >> "$GITHUB_OUTPUT" build: @@ -99,15 +97,13 @@ jobs: name: Build for ${{ matrix.host }}-${{ matrix.arch }} needs: [ prepare ] if: ${{ needs.prepare.outputs.found == 'false' }} - env: - VERSION: ${{ needs.prepare.outputs.version }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: Set env shell: bash run: | - ARCHIVE_NAME=${{ env.BIN_NAME }}-${{ env.VERSION }}-${{ matrix.host }}-${{ matrix.arch }} + ARCHIVE_NAME=${{ env.BIN_NAME }}-${{ needs.prepare.outputs.version }}-${{ matrix.host }}-${{ matrix.arch }} echo "ARCHIVE_NAME=$ARCHIVE_NAME" >> $GITHUB_ENV