Notify via Google Chat
Find a file
D Ther Htun dec309966a
Merge pull request #1 from Lzok/main
Added the flag if: always() to the get commit hash step.
2021-02-16 14:38:17 +06:30
.github/workflows Added the flag if: always() to the get commit hash step. 2021-02-11 12:09:56 -03:00
action.yml change icon 2020-10-29 21:02:54 +06:30
docker-slimbuild v0.7 2020-10-25 02:32:01 +06:30
Dockerfile test 2020-10-25 02:40:13 +06:30
google-chat-action.png add image 2020-10-25 02:50:19 +06:30
LICENSE Create LICENSE 2020-11-16 12:24:32 +06:30
main.go v0.7 2020-10-25 02:31:19 +06:30
README.md Added the flag if: always() to the get commit hash step. 2021-02-11 12:09:56 -03:00

google-chat-action

githaub-action google-chat

Sample Usage:

name: Sample Testing
on: [push]

jobs:
  my_job:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Get commit hash
      if: ${{ always() }}
      run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
      id: slug
    - name: Chat Setup
      if: ${{ always() }}
      uses: DTherHtun/google-chat-action@v0.8
      with:
        project: ${{ github.repository }}
        commit: ${{ steps.slug.outputs.sha8 }}
        branch: ${{ github.ref }}
        status: ${{ job.status }}
        actionid: ${{ github.repository }}/runs/${{ github.run_id }}
        webhook: "https://chat.googleapis.com/v1/spaces/AAAAzPcAy4s/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=MmdzluicdrdkyUAV_QwB6BzlLcIhbfrwNzxVrEllaec%3D&threadKey=git-commit"