mirror of
https://github.com/dtolnay/install.git
synced 2024-11-21 16:09:32 +01:00
Switch from set-output to $GITHUB_OUTPUT
This commit is contained in:
parent
601f148a1e
commit
9d008015ed
2 changed files with 3 additions and 3 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue