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

Fail curl step on 404

This commit is contained in:
David Tolnay 2021-10-08 00:16:08 -04:00
parent 8f29627a44
commit 3b7f7d5ac9
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -16,10 +16,10 @@ runs:
shell: bash
id: cargo
- name: Download ${{inputs.bin || inputs.crate}}
run: curl --output ${{steps.cargo.outputs.dir}}/${{inputs.bin || inputs.crate}} https://github.com/dtolnay/install/releases/download/${{inputs.crate}}/${{inputs.bin || inputs.crate}} --location --silent --show-error
run: curl --output ${{steps.cargo.outputs.dir}}/${{inputs.bin || inputs.crate}} https://github.com/dtolnay/install/releases/download/${{inputs.crate}}/${{inputs.bin || inputs.crate}} --location --silent --show-error --fail
shell: bash
- name: Download ${{inputs.bin || inputs.crate}}.sig
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
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 --fail
shell: bash
- name: Retrieve public key of signing key
run: gpg --output ${{runner.temp}}/signing-key.gpg --yes --dearmor ${{github.action_path}}/signing-key.asc