Skip to content

Commit

Permalink
Update slack notification workflow with template
Browse files Browse the repository at this point in the history
  • Loading branch information
F-WRunTime committed Aug 13, 2024
1 parent 4153f96 commit 1303233
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/proof-runner-notification.yml
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 }}

0 comments on commit 1303233

Please sign in to comment.