-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PM-2037 - Do not fail CI when all seeds up
- Loading branch information
Showing
1 changed file
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|