From 0756ee5e47837f1360f76623ce5796be5bbec78b Mon Sep 17 00:00:00 2001 From: Declan Moran Date: Mon, 13 May 2024 13:56:24 +0200 Subject: [PATCH] fix: deprecation in ci - use environment files to share data between steps instead of the old set-output command --- .github/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 850688c64..21fde65eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,29 +36,29 @@ jobs: run: | if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ github.event.inputs.tagName }}" != "" ]]; then echo "Using manually provided tag name: ${{ github.event.inputs.tagName }}" - echo "::set-output name=tag_name::${{ github.event.inputs.tagName }}" + echo "tag_name=${{ github.event.inputs.tagName }}" >> $GITHUB_ENV else echo "Determining the latest release tag..." release_info=$(gh release view --json tagName -q .tagName) - echo "::set-output name=tag_name::$release_info" + echo "tag_name=$release_info" >> $GITHUB_ENV fi - name: Download the release asset env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Construct the asset file name - asset_name="${{ steps.get-tag-name.outputs.tag_name }}.zip" + # Read the tag name from the environment variable + asset_name="${{ env.tag_name }}.zip" echo "Looking for asset: $asset_name" # Use GitHub CLI to download the asset - gh release download "${{ steps.get-tag-name.outputs.tag_name }}" \ + gh release download "${{ env.tag_name }}" \ --pattern "$asset_name" \ --dir . - name: Extract the archive run: | - asset_name="${{ steps.get-tag-name.outputs.tag_name }}.zip" + asset_name="${{ env.tag_name }}.zip" unzip "$asset_name" -d extracted # - name: Check for the specific file