-
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.
- Loading branch information
Showing
1 changed file
with
29 additions
and
9 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 |
---|---|---|
|
@@ -40,13 +40,33 @@ jobs: | |
--peer ${{ matrix.seed }} | ||
- name: Wait for Daemon to Sync | ||
id: wait-for-sync | ||
run: ./scripts/mina-sync-monitor.sh | ||
- name: Post to a Slack channel | ||
id: slack | ||
run: exit 1 && ./scripts/mina-sync-monitor.sh | ||
- name: Record Failing Seed | ||
id: record-fail | ||
if: ${{ failure() }} | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: "mf-alerts-info" | ||
slack-message: "Failed to synchronize with Mina Daemon using seed peer:\n *_${{ matrix.seed }}_*" | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
run: | | ||
echo "Update Failed Seed List" | ||
echo "failed-seeds-${{strategy.job-index}}=${{ matrix.seed }}" | ||
print-failed-seeds: | ||
needs: test-peer | ||
runs-on: minafoundation-default-runners | ||
steps: | ||
- name: Echo Failed Seeds | ||
run: | | ||
echo "Failed Seed List" | ||
# send-slack-notification: | ||
# needs: test-peer | ||
# runs-on: minafoundation-default-runners | ||
# steps: | ||
# - name: Post to a Slack channel | ||
# id: slack | ||
# if: ${{ failure() }} | ||
# uses: slackapi/[email protected] | ||
# with: | ||
# channel-id: "mf-alerts-info" | ||
# slack-message: "Failed to synchronize with Mina Daemon using seed peer:\n *_${{ matrix.seed }}_*" | ||
# env: | ||
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |