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
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: stable
|
default: stable
|
||||||
|
locked:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
secrets:
|
secrets:
|
||||||
private_key:
|
private_key:
|
||||||
required: true
|
required: true
|
||||||
|
@ -44,7 +48,7 @@ jobs:
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: ${{inputs.toolchain}}
|
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 || '.'}}
|
working-directory: ${{inputs.git && inputs.crate || '.'}}
|
||||||
- id: which
|
- id: which
|
||||||
run: echo "which=$(which ${{inputs.bin || inputs.crate}})" >> $GITHUB_OUTPUT
|
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:
|
with:
|
||||||
crate: taplo-cli
|
crate: taplo-cli
|
||||||
bin: taplo
|
bin: taplo
|
||||||
|
locked: true
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
Loading…
Reference in a new issue