chore: add notification action
[skip ci]
This commit is contained in:
parent
064d2cf1db
commit
683bc64c12
4 changed files with 43 additions and 36 deletions
21
.github/workflows/notify_pr.yaml
vendored
21
.github/workflows/notify_pr.yaml
vendored
|
|
@ -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 }}"
|
||||
|
|
|
|||
6
.github/workflows/tf-acc-test.yaml
vendored
6
.github/workflows/tf-acc-test.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue