You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
google-chat-job-failed
v0.2.0
This sends messages to google chat when a workflow job fails.
Pass the jobs that you need to track to needs:
.
The action takes 2 mandatory variables: gchatURL and json.
Leave the json variable as is in the example. This is still a WIP.
Add your Google Chat webhook URL to the repo's secrets and send it to the gchatURL variable.
post-to-google-chat:
needs: [ job1, job2, job3 ]
if: always()
runs-on: ubuntu-latest
steps:
- name: google-chat-job-failed
uses: datamole-ai/google-chat-job-failed@main
with:
gchatURL: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
json: ${{ toJSON(needs) }}