Skip to content

google-github-actions/send-google-chat-webhook

send-google-chat-webhook

This github action will enable users to send notification to google chat via github actions.

Prerequisites

Obtain a web hook from your google chat workspace.

  1. Go to your chat space which you want to add a webhook.
  2. At the top, click on the space title, select Apps & Integration.
  3. Click Manage webhooks
  4. Create a webhook or add another webhook if there is already one.
  5. Copy the webhook URL that you intend to use for this github action.

For your own security purposes, we would suggest to store your webhook url in github secrets, and use ${{ secrets.WEBHOOK_URL}} to get it's value.

Usage

jobs:
  job_id:
    # ...

    permissions:
      contents: 'read'
      id-token: 'write'

    steps:
    # ...

    - id: 'notify_google_chat'
      uses: 'google-github-actions/send-google-chat-webhook@v0.0.2'
      with:
        webhook_url: '${{ secrets.WEBHOOK_URL }}'
        mention: "<users/all>"

You can customize the condition for when you want this action is called..

- id: 'notify google chat'
  if: ${{ inputs.fail_intentionally }}
  uses: 'google-github-actions/send-google-chat-webhook@v0.0.2'
  with:
    webhook_url: '${{ secrets.WEBHOOK_URL }}'
    mention: "<users/all>"

Helpful references:

About

A GitHub Action for sending a message to Google Chat via a webhook.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy