Skip to content

Commit

Permalink
PM-2037 - Do not fail CI when all seeds up
Browse files Browse the repository at this point in the history
  • Loading branch information
kaozenn committed Oct 21, 2024
1 parent 95556ee commit 758c8eb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/sync-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,10 @@ jobs:
pattern: "failed-seeds-*" # Use a wildcard to download all artifacts matching the pattern
- name: Echo Failed Seeds
run: |
cat failed-seeds-*/failed-seeds-*.txt > failed-seeds.txt
if [ ! -s failed-seeds.txt ]; then
exit 0
else
jq -n --arg message "Failed to synchronize with Mina Daemon using seed peer:" \
--argjson seeds "$(cat failed-seeds.txt | jq -R . | jq -s .)" \
'{text: ($message + "\n\n" + ($seeds | map("• " + .) | join("\n")))}' > payload-slack-content.json
fi
cat failed-seeds-*/failed-seeds-*.txt > failed-seeds.txt || exit 0
jq -n --arg message "Failed to synchronize with Mina Daemon using seed peer:" \
--argjson seeds "$(cat failed-seeds.txt | jq -R . | jq -s .)" \
'{text: ($message + "\n\n" + ($seeds | map("• " + .) | join("\n")))}' > payload-slack-content.json
- name: Post to a Slack channel
id: slack
uses: slackapi/[email protected]
Expand Down

0 comments on commit 758c8eb

Please sign in to comment.