From 2649c882f77d6cbdd7dd8ed6ee8e940944e996ca Mon Sep 17 00:00:00 2001 From: Michael Beemer Date: Mon, 2 Dec 2024 09:55:24 -0500 Subject: [PATCH] ci: add google chat notifications Signed-off-by: Michael Beemer --- .github/workflows/notifications.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/notifications.yml diff --git a/.github/workflows/notifications.yml b/.github/workflows/notifications.yml new file mode 100644 index 0000000..8097026 --- /dev/null +++ b/.github/workflows/notifications.yml @@ -0,0 +1,26 @@ +on: + commit_comment: + types: [created, edited, deleted] + push: + branches: [main] + pull_request: + types: [opened, edited, closed, reopened, synchronize] + deployment_status: + types: [success, failure, in_progress] + release: + types: [published, created, edited, deleted, prereleased, released] + workflow_run: + types: [completed, in_progress, requested] + +jobs: + notify: + runs-on: ubuntu-latest + permissions: + contents: 'read' + id-token: 'write' + + steps: + - id: 'notify_google_chat' + uses: 'google-github-actions/send-google-chat-webhook@v0.0.4' + with: + webhook_url: '${{ secrets.WEBHOOK_URL }}'