Skip to content

Commit 33c9262

Browse files
committed
Add slack notification
1 parent 2445935 commit 33c9262

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/summary-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,12 @@ jobs:
4141
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
4242
asset_path: ./monthly-summary-$.zip
4343
asset_name: monthly-summary-${{ steps.current-time.outputs.time }}.zip
44-
asset_content_type: application/zip
44+
asset_content_type: application/zip
45+
- name: Report Status
46+
if: always()
47+
uses: ravsamhq/notify-slack-action@master
48+
with:
49+
status: ${{ job.status }}
50+
notify_when: 'failure'
51+
env:
52+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)