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}}