Skip to content

Commit

Permalink
Merge pull request #5 from DeterminateSystems/curl-retries
Browse files Browse the repository at this point in the history
Rework curl fetching logic
  • Loading branch information
lucperkins committed Jun 27, 2023
2 parents 050b2a9 + 010de79 commit 4b90f9f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ runs:
run: |
set -eu
curl --max-time 2 --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/flake-checker/stable/$RUNNER_ARCH-$RUNNER_OS > "$RUNNER_TEMP/flake-checker"
curl \
--connect-timeout 5 \
--retry 5 \
--retry-connrefused \
--proto '=https' \
--tlsv1.2 \
-fsLS \
https://install.determinate.systems/flake-checker/stable/$RUNNER_ARCH-$RUNNER_OS > "$RUNNER_TEMP/flake-checker"
chmod +x "$RUNNER_TEMP/flake-checker"
export NIX_FLAKE_CHECKER_FLAKE_LOCK_PATH="${{ inputs.flake-lock-path }}"
Expand Down

0 comments on commit 4b90f9f

Please sign in to comment.