Skip to content

Commit

Permalink
🔧 notifying ci failures to chat
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Apr 16, 2024
1 parent da7f8e6 commit d0068f7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ jobs:
parallel: true
flag-name: Unit tests

- name: Google Chat Notificationa
uses: SimonScholz/google-chat-action@main
if: failure()
# this allows the build to succeed even when the notification fails
# e.g. due to dependabot push, which may not have the secret
continue-on-error: true
with:
# https://docs.github.com/en/webhooks/webhook-events-and-payloads
webhookUrl: ${{ secrets.WEBHOOK_ALERTES_WEBAPPS }}
jobStatus: ${{ job.status }}
imageUrl: ${{ format('https://github.com/{0}.png', github.event.head_commit.author.username) }}
imageAltText: ${{ github.event.head_commit.author.name }}
subtitle: ${{ github.event.head_commit.message }}
title: "${{ format('{0} -- [{1}]', github.event.repository.name, github.event.ref) }}"

coveralls_finish:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit d0068f7

Please sign in to comment.