Skip to content

Commit

Permalink
Can we report backup status?
Browse files Browse the repository at this point in the history
  • Loading branch information
clarmso committed Nov 7, 2024
1 parent 5723fbd commit d5371cd
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/testrail-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
payload: |
{
"type": "mrkdwn",
"text": ":sad:"
"text": "TestRail backup failed :sad:"
}
- name: Notify Slack for successful job
Expand All @@ -108,6 +108,26 @@ jobs:
channel-id: ${{ secrets.SLACK_MOBILE_ALERTS_SANDBOX_CHANNEL }}
payload: |
{
"type": "mrkdwn",
"text": ":tada:"
"blocks": [
{
"type": "header",
"text": {
"type": "mrkdwn",
"text": ":tada: TestRail Backup"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<${{ env.STORAGE_URL_PREFIX }}/${{ env.BUCKET }}/${{ steps.upload-file.outputs.uploaded }}|Download Backup>"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Link>"
}
]
}

0 comments on commit d5371cd

Please sign in to comment.