Skip to content

Commit 4b90f9f

Browse files
authored
Merge pull request #5 from DeterminateSystems/curl-retries
Rework curl fetching logic
2 parents 050b2a9 + 010de79 commit 4b90f9f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ runs:
5151
run: |
5252
set -eu
5353
54-
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"
54+
curl \
55+
--connect-timeout 5 \
56+
--retry 5 \
57+
--retry-connrefused \
58+
--proto '=https' \
59+
--tlsv1.2 \
60+
-fsLS \
61+
https://install.determinate.systems/flake-checker/stable/$RUNNER_ARCH-$RUNNER_OS > "$RUNNER_TEMP/flake-checker"
62+
5563
chmod +x "$RUNNER_TEMP/flake-checker"
5664
5765
export NIX_FLAKE_CHECKER_FLAKE_LOCK_PATH="${{ inputs.flake-lock-path }}"

0 commit comments

Comments
 (0)