3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-22 08:29:30 +01:00

Merge pull request #9 from dtolnay/output

Switch from set-output to $GITHUB_OUTPUT
This commit is contained in:
David Tolnay 2022-10-13 09:36:41 -07:00 committed by GitHub
commit b9085b1679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -30,9 +30,9 @@ jobs:
- uses: dtolnay/rust-toolchain@stable - 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) || ''}} - 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 - 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 - 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 - run: echo "$PRIVATE_KEY" | gpg --import
env: env:
PRIVATE_KEY: ${{secrets.private_key}} PRIVATE_KEY: ${{secrets.private_key}}

View file

@ -12,7 +12,7 @@ runs:
using: composite using: composite
steps: steps:
- name: Determine cargo bin directory - name: Determine cargo bin directory
run: echo "::set-output name=dir::$(dirname $(which cargo))" run: echo "dir=$(dirname $(which cargo))" >> $GITHUB_OUTPUT
shell: bash shell: bash
id: cargo id: cargo
- name: Download ${{inputs.bin || inputs.crate}} - name: Download ${{inputs.bin || inputs.crate}}