3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-26 01:49:32 +01:00

Merge pull request #3 from dtolnay/git

Add support for git install
This commit is contained in:
David Tolnay 2022-06-22 10:28:58 -07:00 committed by GitHub
commit 90b2bd043a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,12 @@ on:
bin:
required: false
type: string
git:
required: false
type: string
branch:
required: false
type: string
secrets:
private_key:
required: true
@ -22,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo install --force ${{inputs.crate}} --bin ${{inputs.bin || inputs.crate}}
- 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}})"
- id: version