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

Add retry for curl steps

This commit is contained in:
David Tolnay 2022-06-26 11:47:54 -07:00
parent 2bc08ab103
commit bd6dc5b7a6
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -16,10 +16,10 @@ runs:
shell: bash shell: bash
id: cargo id: cargo
- name: Download ${{inputs.bin || inputs.crate}} - 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 --fail 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 --retry 5
shell: bash shell: bash
- name: Download ${{inputs.bin || inputs.crate}}.sig - 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 --fail 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 --retry 5
shell: bash shell: bash
- name: Retrieve public key of signing key - name: Retrieve public key of signing key
run: gpg --output ${{runner.temp}}/signing-key.gpg --yes --dearmor ${{github.action_path}}/signing-key.asc run: gpg --output ${{runner.temp}}/signing-key.gpg --yes --dearmor ${{github.action_path}}/signing-key.asc