Skip to content

Commit

Permalink
test retry
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Aug 3, 2024
1 parent f4fb195 commit 3922de0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/livecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
RETRIES: 10
GITHUB_TOKEN: ${{ secrets.RETRY_TOKEN }}
run: |
bundle exec script/livecheck || {
exit_code=$?
# bundle exec script/livecheck || {
exit_code=2
if (( $exit_code == 2 )) && (( ${RETRY:-0} < $RETRIES )); then
sleep 300
sleep 1
gh workflow run livecheck --repo $GITHUB_REPOSITORY --ref $GITHUB_REF_NAME -f retry=$(( $RETRY + 1 ))
else
exit $exit_code
fi
}
# }

0 comments on commit 3922de0

Please sign in to comment.