mirror of
https://github.com/dtolnay/install.git
synced 2024-11-22 08:29:30 +01:00
Support --locked during install
This commit is contained in:
parent
e7ebb97ed1
commit
01f65ed591
2 changed files with 6 additions and 1 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -22,6 +22,10 @@ on:
|
|||
required: false
|
||||
type: string
|
||||
default: stable
|
||||
locked:
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
secrets:
|
||||
private_key:
|
||||
required: true
|
||||
|
@ -44,7 +48,7 @@ jobs:
|
|||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{inputs.toolchain}}
|
||||
- run: cargo install --force ${{inputs.git && format('--path={0}', inputs.path || '.') || inputs.crate}} --bin ${{inputs.bin || inputs.crate}}
|
||||
- run: cargo install --force ${{inputs.git && format('--path={0}', inputs.path || '.') || inputs.crate}} --bin ${{inputs.bin || inputs.crate}} ${{inputs.locked && '--locked' || ''}}
|
||||
working-directory: ${{inputs.git && inputs.crate || '.'}}
|
||||
- id: which
|
||||
run: echo "which=$(which ${{inputs.bin || inputs.crate}})" >> $GITHUB_OUTPUT
|
||||
|
|
1
.github/workflows/taplo-cli.yml
vendored
1
.github/workflows/taplo-cli.yml
vendored
|
@ -12,6 +12,7 @@ jobs:
|
|||
with:
|
||||
crate: taplo-cli
|
||||
bin: taplo
|
||||
locked: true
|
||||
permissions:
|
||||
contents: write
|
||||
secrets: inherit
|
||||
|
|
Loading…
Reference in a new issue