Skip to content

Commit

Permalink
Add notifications (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
janlegner authored Nov 30, 2023
1 parent 6f1eadd commit 5854ea7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .buildkite/fetch-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ steps:

- wait: ~

- label: ":mega: Notification"
commands:
- |
epoch=${EPOCH:-$(buildkite-agent meta-data get epoch)}
curl "$$DISCORD_WEBHOOK_VALIDATOR_BONDS" -H "Content-Type: application/json" -d '{
"embeds": [
{
"title": "Preparing claims for Validator Bonds ('"$$epoch"').",
"url": "'"$$BUILDKITE_BUILD_URL"'",
"color": "8388863"
}
]
}'
- label: ":file_folder: Prepare snapshot directory"
env:
target_dir: /mnt/storage-1/snapshots
Expand Down
14 changes: 14 additions & 0 deletions .buildkite/prepare-claims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ steps:

- wait: ~

- label: ":mega: Notification"
commands:
- |
epoch=${EPOCH:-$(buildkite-agent meta-data get epoch)}
curl "$$DISCORD_WEBHOOK_VALIDATOR_BONDS" -H "Content-Type: application/json" -d '{
"embeds": [
{
"title": "Claims for Validator Bonds prepared ('"$$epoch"').",
"url": "'"$$BUILDKITE_BUILD_URL"'",
"color": "5661687"
}
]
}'
- command: echo "End of concurrency gate <--"
concurrency_group: 'validator-bonds/prepare-claims'
concurrency: 1

0 comments on commit 5854ea7

Please sign in to comment.