notify/README.md
Marcel S. Henselin d346a15951
Some checks are pending
Sample Testing / my_job (push) Waiting to run
chore: initial release
2026-04-16 08:24:44 +02:00

954 B

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@v6

    - 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: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0
      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"