Skip to content

teknatha136/actions-google-chat-text-message

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send Google Chat Text Message using space incoming Webhook

Note: This action is only for sending text messages, does not support Card messages.

TO make use of this action add the following steps to your GitHub Action workflow:

      - uses: teknatha136/actions-google-chat-text-message@main
        with:
          google-chat-webhook: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
          text-message: The actual Message

In above action google-chat-webhook take the Google Chat Space's incoming webhook. Follow docs https://developers.google.com/chat/how-tos/webhooks#create_a_webhook to create a webhook.

text-message is the actual message you want to send.

Example usage

name: Google Chat
on:
  push:
    branches: ["**"]    
jobs:
  send-message:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Code
        uses: actions/checkout@v3
      - uses: teknatha136/actions-google-chat-text-message@main
        with:
          google-chat-webhook: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
          text-message: Hello,\nThis is a test message.\nMessage sent by ${{ github.actor }}

This example delivers message as below.

Text message example

About

Send Google Chat Text Message using space incoming Webhook

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages