Skip to content

Commit d1c37f9

Browse files
authored
Merge pull request #15 from AstarVienna/fh/slack
Add Slack Bot notification
2 parents 2a2406c + f16b32d commit d1c37f9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/download_data.yml

+15
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ jobs:
3737
labels: |
3838
automated
3939
draft: false
40+
41+
on-failure:
42+
runs-on: ubuntu-latest
43+
if: ${{ always() && (needs.download_data.result == 'failure' || needs.download_data.result == 'timed_out') }}
44+
needs:
45+
- download_data
46+
steps:
47+
- uses: actions/checkout@v2
48+
- name: Slack Notification
49+
uses: rtCamp/action-slack-notify@v2
50+
env:
51+
SLACK_USERNAME: GH Actions Bot
52+
SLACK_TITLE: Workflow ${{ needs.download_data.result }}
53+
MSG_MINIMAL: actions url
54+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)