From c21a44f3dbcb881ef5f814f71191af355a9cbeb8 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 7 Oct 2021 23:15:17 -0400 Subject: [PATCH] Overwrite signing-key.gpg if already exists --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 15e8cca..42a22f4 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,7 @@ runs: run: curl --output ${{runner.temp}}/${{inputs.bin || inputs.crate}}.sig https://github.com/dtolnay/install/releases/download/${{inputs.crate}}/${{inputs.bin || inputs.crate}}.sig --location --silent --show-error shell: bash - name: Retrieve public key of signing key - run: gpg --output ${{runner.temp}}/signing-key.gpg --dearmor ${{github.action_path}}/signing-key.asc + run: gpg --output ${{runner.temp}}/signing-key.gpg --yes --dearmor ${{github.action_path}}/signing-key.asc shell: bash - name: Verify gpg signature run: gpg --no-default-keyring --keyring ${{runner.temp}}/signing-key.gpg --verify ${{runner.temp}}/${{inputs.bin || inputs.crate}}.sig ${{steps.cargo.outputs.dir}}/${{inputs.bin || inputs.crate}}