Skip to content

Github Action Notification for Discord, Slack, Telegram, Google Chat, Microsoft Teams. Support show QR code

Notifications You must be signed in to change notification settings

hunghg255/action-notifications

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

Repository files navigation

logo

A Github actions notification to Discord, Slack, Telegram, Google chat, Microsoft Teams, Support show QR code

Contributors License

Usage

uses: hunghg255/action-notifications@master with: discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} slack_webhook: ${{ secrets.SLACK_WEBHOOK }} telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }} telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} # telegram_message_thread_id: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }} google_chat_webhook: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} ms_teams_webhook: ${{ secrets.MS_TEAMS_WEBHOOK }} title: "Deploy to Dev" description: "Test here: https://hung.thedev.id"

Inputs

Properties Description
discord_webhook Discord Webhook
slack_webhook Slack Webhook
slack_username Slack Username
telegram_bot_token Telegram Bot Token Require telegram_chat_id
telegram_chat_id Telegram Chat ID Require telegram_bot_token
telegram_message_thread_id Telegram Thread Message For Topic
google_chat_webhook Google Chat Webhook
ms_teams_webhook Microsoft Teams Webhook
title Title
description Description
qrcode Text

Example

name: Notification on: push: branches: - nofication jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Build and lint run: |  echo "Build and lint"   - name: Notification Failure if: failure() uses: hunghg255/action-notifications@master with: discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} slack_webhook: ${{ secrets.SLACK_WEBHOOK }} telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }} telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} # Remove comment below for Telegram Topic Message # telegram_message_thread_id: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }} google_chat_webhook: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} ms_teams_webhook: ${{ secrets.MS_TEAMS_WEBHOOK }} title: "Deploy to Dev" description: "Test here: https://hung.thedev.id" notifification: needs: deploy runs-on: ubuntu-latest steps: - name: Notification Success uses: hunghg255/action-notifications@master if: always() with: discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} slack_webhook: ${{ secrets.SLACK_WEBHOOK }} telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }} telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} # Remove comment below for Telegram Topic Message # telegram_message_thread_id: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }} google_chat_webhook: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} ms_teams_webhook: ${{ secrets.MS_TEAMS_WEBHOOK }} title: "Deploy to Dev" description: "Test here: https://hung.thedev.id"

Results

  • Discord

Discord

  • Slack

Slack

  • Telegram

Telegram

  • Google Chat

Google Chat

  • Microsoft Teams

Microsoft Teams

About

Github Action Notification for Discord, Slack, Telegram, Google Chat, Microsoft Teams. Support show QR code

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •