forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update slack notification workflow with template
- Loading branch information
1 parent
4153f96
commit 1303233
Showing
1 changed file
with
10 additions
and
13 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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
name: Handle Proof Runner Deployment Status | ||
name: Proof Runner Deployment Status | ||
on: | ||
status | ||
jobs: | ||
handle-proof-runner: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Deployment Status | ||
- name: Generate Slack Payload | ||
run: | | ||
echo "Deployment Status: ${{ github.event.deployment_status.state }}" | ||
if [[ "${{ github.event.deployment_status.state }}" == "success" ]]; then | ||
echo "Proof Runner deployment was successful!" | ||
# Add your steps to handle a successful deployment | ||
elif [[ "${{ github.event.deployment_status.state }}" == "failure" ]]; then | ||
echo "Proof Runner deployment failed!" | ||
# Add your steps to handle a failed deployment | ||
else | ||
echo "Proof Runner deployment is in progress!" | ||
# Add your steps to handle in-progress deployment | ||
fi | ||
echo '{"Check Status": "${{ github.event.state }}"}' > payload.json | ||
- name: Send Status Check to Slack | ||
uses: slackapi/slack-github-action@v1.26.0 | ||
with: | ||
payload-file-path: "./payload.json" | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |