GitHub Action for sending a Gtalk notification message. You can get the OAuth token in Google playground. Please set the scope as https://www.googleapis.com/auth/googletalk.
Send custom message as below
name: gtalk message
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: send custom message with args
uses: appleboy/gtalk-action@master
with:
username: ${{ secrets.USERNAME }}
oauth_token: ${{ secrets.OAUTH_TOKEN }}
to: ${{ secrets.TO}}
args: The ${{ github.event_name }} event triggered first step.
- username - required. gtalk user email.
- oauth_token - required. AuthToken provides go-xmpp with the required OAuth2 token used to authenticate. Get token from OAuth Playground.
- to - required. send message to user.
- message - optional. custom message.
Send custom message in message
- name: send message
uses: appleboy/gtalk-action@master
with:
username: ${{ secrets.USERNAME }}
oauth_token: ${{ secrets.OAUTH_TOKEN }}
to: ${{ secrets.TO}}
message: The ${{ github.event_name }} event triggered first step.Send the default message.
- name: send message
uses: appleboy/gtalk-action@master
with:
username: ${{ secrets.USERNAME }}
oauth_token: ${{ secrets.OAUTH_TOKEN }}
to: ${{ secrets.TO}}