Send automated pipeline status notifications from GitHub Actions to Google Chat rooms seamlessly.
This GitHub Action allows you to send detailed pipeline status notifications directly to your Google Chat rooms via webhooks. Whether you want to track successful deployments, catch failures early, or keep your team informed about ongoing processes, this action streamlines your notification workflow.
- 🔔 Real-time notifications in Google Chat
- 🎨 Clean and informative message formatting
- 🛠️ Easy integration with existing workflows
- 📝 Support for custom messages
- 🔄 Status-based notifications (success/failure/cancelled)
Add the following step to your GitHub Actions workflow:
- name: Send Google Chat Notification
uses: adprajwal/ChimeOps@v1
with:
name: "Deploy to Production"
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
status: ${{ job.status }}
custom_text: "Optional custom message here"| Input | Description |
|---|---|
name |
Name of the workflow job/step being executed |
url |
Google Chat Webhook URL for the target chat room |
status |
Current status of the job (success/failure/in-progress) |
| Input | Description |
|---|---|
custom_text |
Additional message to include in the notification |
- Open your Google Chat room.
- Click the room name to open room settings.
- Select "Manage webhooks".
- Click "Add webhook".
- Provide a name and optional avatar.
- Copy the generated webhook URL.
- Navigate to your GitHub repository.
- Go to Settings > Secrets and Variables > Actions.
- Click "New repository secret".
- Name:
GOOGLE_CHAT_WEBHOOK - Value: Your webhook URL from Step 1.
- Click "Add secret".
name: Build and Deploy
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: echo "Building..."
- name: Send Notification
uses: adprajwal/ChimeOps@v1
if: always()
with:
name: "Build Status"
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
status: ${{ job.status }}This ensures your team stays informed about workflow statuses in real-time, helping you maintain efficiency and transparency!
Made with ❤️ by Prajwal Adhikari