From 9d008015eda0b0c7f76e9f20a9505cc861b25984 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 13 Oct 2022 09:35:44 -0700 Subject: [PATCH] Switch from set-output to $GITHUB_OUTPUT --- .github/workflows/build.yml | 4 ++-- action.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c99f206..731c5b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,9 +30,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable - run: cargo install --force ${{inputs.crate}} --bin ${{inputs.bin || inputs.crate}} ${{inputs.git && format('--git={0}', inputs.git) || ''}} ${{inputs.branch && format('--branch={0}', inputs.branch) || ''}} - id: which - run: echo "::set-output name=which::$(which ${{inputs.bin || inputs.crate}})" + run: echo "which=$(which ${{inputs.bin || inputs.crate}})" >> $GITHUB_OUTPUT - id: version - run: echo "::set-output name=version::$(cargo install --list | grep -o '^${{inputs.crate}} \([^ :]\)\+')" + run: echo "version=$(cargo install --list | grep -o '^${{inputs.crate}} \([^ :]\)\+')" >> $GITHUB_OUTPUT - run: echo "$PRIVATE_KEY" | gpg --import env: PRIVATE_KEY: ${{secrets.private_key}} diff --git a/action.yml b/action.yml index 43f7982..7dce50f 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ runs: using: composite steps: - name: Determine cargo bin directory - run: echo "::set-output name=dir::$(dirname $(which cargo))" + run: echo "dir=$(dirname $(which cargo))" >> $GITHUB_OUTPUT shell: bash id: cargo - name: Download ${{inputs.bin || inputs.crate}}