3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-25 01:19:33 +01:00

Switch from set-output to $GITHUB_OUTPUT

This commit is contained in:
David Tolnay 2022-10-13 09:35:44 -07:00
parent 601f148a1e
commit 9d008015ed
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 3 deletions

View file

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

View file

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