Skip to content

Commit

Permalink
Retry startup 5 times
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 9, 2024
1 parent 4fdc5a1 commit c4ebc75
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions githubActions/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ const JUST_COMMAND = process.env.INPUT_COMMAND;
const script = `
set -x
just prefer ${CONTAINER_ENGINE}
for i in {1..5}; do
just start-ancillary && start=good && break
done
if [ "$start" != "good" ]; then
echo "::error ::Failed to start ancillary services."
exit 1
fi
just ${JUST_COMMAND}
rc=$?
if [ "$rc" != '0' ]; then
Expand Down

0 comments on commit c4ebc75

Please sign in to comment.