Skip to content

Commit

Permalink
ci: fix broken retry mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Dec 29, 2024
1 parent 2cb3fa1 commit f9d2433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
for attempt in $(seq 1 5); do
echo "Attempt $attempt/5"
docker run --rm -v "$(pwd)/build/website:/website" -e GITHUB_TOKEN lycheeverse/lychee:0.10.3 $(echo "$FILES") --exclude-file /website/lycheeignore -m 100 --accept 403,429,500,502,503 && break
if [ "$attempt" = "${{ inputs.retries-on-failure}}" ]; then exit 1; else sleep 120; fi
if [ "$attempt" = "5" ]; then exit 1; else sleep 120; fi
done
# Create a staging repository on Central
Expand Down

0 comments on commit f9d2433

Please sign in to comment.