Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Aug 3, 2024
1 parent 0b8de6d commit f4fb195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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: |
if ! bundle exec script/livecheck; then
bundle exec script/livecheck || {
exit_code=$?
if (( $exit_code == 2 )) && (( ${RETRY:-0} < $RETRIES )); then
sleep 300
gh workflow run livecheck --repo $GITHUB_REPOSITORY --ref $GITHUB_REF_NAME -f retry=$(( $RETRY + 1 ))
else
exit $exit_code
fi
fi
}

0 comments on commit f4fb195

Please sign in to comment.