From 01f65ed59156d221afa90ec097ac8077795cd39e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 8 Oct 2023 10:01:23 -0700 Subject: [PATCH] Support --locked during install --- .github/workflows/build.yml | 6 +++++- .github/workflows/taplo-cli.yml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c5cda9..d4056ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/taplo-cli.yml b/.github/workflows/taplo-cli.yml index e0b5f5b..027f4f1 100644 --- a/.github/workflows/taplo-cli.yml +++ b/.github/workflows/taplo-cli.yml @@ -12,6 +12,7 @@ jobs: with: crate: taplo-cli bin: taplo + locked: true permissions: contents: write secrets: inherit