chore: add notification action

[skip ci]
This commit is contained in:
Marcel S. Henselin 2026-03-25 12:14:54 +01:00
parent 064d2cf1db
commit 683bc64c12
4 changed files with 43 additions and 36 deletions

View file

@ -1,4 +1,4 @@
name: Notify Google Chat on new PR
name: Notify on new PR
on:
pull_request:
@ -6,15 +6,20 @@ on:
- opened
jobs:
notify-pr-google-chat:
notify:
name: Notify via Google Chat
runs-on: stackit-docker
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Notify
uses: ./.github/actions/notify
with:
title: New Pull Request
event_title: ${{ github.event.pull_request.title }}
event_author: ${{ github.event.pull_request.user.login }}
event_body: ${{ github.event.pull_request.body || 'No description provided.' }}
event_number: ${{ github.event.pull_request.number }}
event_url: ${{ github.event.pull_request.html_url }}
webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }}
title: "New Pull Request"
event_title: "${{ github.event.pull_request.title }}"
event_author: "${{ github.event.pull_request.user.login }}"
event_body: "${{ github.event.pull_request.body || 'No description provided.' }}"
event_number: "${{ github.event.pull_request.number }}"
event_url: "${{ github.event.pull_request.html_url }}"

View file

@ -27,6 +27,9 @@ jobs:
name: Acceptance Tests
runs-on: stackit-docker
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Notify
uses: ./.github/actions/notify
with:
@ -37,9 +40,6 @@ jobs:
event_number: ${{ github.event.id }}
event_url: "${{ github.repositoryUrl }}"
- name: Checkout
uses: actions/checkout@v6
- name: Run Test (workflow dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/acc_test