mirror of
https://github.com/dtolnay/install.git
synced 2024-11-22 16:29:32 +01:00
Merge pull request #9 from dtolnay/output
Switch from set-output to $GITHUB_OUTPUT
This commit is contained in:
commit
b9085b1679
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
|
- 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}}
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in a new issue