Skip to content

Commit 2bd65eb

Browse files
authored
Merge pull request #46 from bitnami/worflows-add-notification
github-actions: Add gchat notification
2 parents 0fa494a + 90ea8bf commit 2bd65eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,14 @@ jobs:
9696
fi
9797
env:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99+
notify:
100+
name: Send notification
101+
needs:
102+
- release
103+
if: ${{ always() && needs.release.result == 'failure' }}
104+
uses: bitnami/support/.github/workflows/gchat-notification.yml@main
105+
with:
106+
workflow: ${{ github.workflow }}
107+
job-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
108+
secrets:
109+
webhook-url: ${{ secrets.GCHAT_CONTENT_ALERTS_WEBHOOK_URL }}

0 commit comments

Comments
 (0)