From 8a6d9321072df24bd428f7d6aea4c5223e7e00c7 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Wed, 25 Mar 2026 13:40:23 +0100 Subject: [PATCH] chore: add notifications [skip ci] --- .github/workflows/ci_new.yaml | 11 +++++++++++ .github/workflows/clean_up.yaml | 11 +++++++++++ .github/workflows/publish.yaml | 11 +++++++++++ .github/workflows/tf-acc-test.yaml | 4 ++-- 4 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_new.yaml b/.github/workflows/ci_new.yaml index 08239560..d79f806a 100644 --- a/.github/workflows/ci_new.yaml +++ b/.github/workflows/ci_new.yaml @@ -33,6 +33,17 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Notify + uses: ./.github/actions/notify + with: + webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} + title: CI pipeline started + event_title: ${{ github.event.type }} + event_author: ${{ github.event.actor.login }} + event_body: 'No event body.' + event_number: ${{ github.event.id }} + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}" + - name: Check GoReleaser uses: goreleaser/goreleaser-action@v7 with: diff --git a/.github/workflows/clean_up.yaml b/.github/workflows/clean_up.yaml index 4a5b54be..318c5054 100644 --- a/.github/workflows/clean_up.yaml +++ b/.github/workflows/clean_up.yaml @@ -34,6 +34,17 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Notify + uses: ./.github/actions/notify + with: + webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} + title: CI pipeline started + event_title: ${{ github.event.type }} + event_author: ${{ github.event.actor.login }} + event_body: "Filter: ${{ inputs.res_prefix }}" + event_number: ${{ github.event.id }} + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}" + - name: Clean uses: ./.github/actions/clean_up with: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 633953f4..2810d5c4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -47,6 +47,17 @@ jobs: with: fetch-tags: true + - name: Notify + uses: ./.github/actions/notify + with: + webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} + title: Publish started + event_title: ${{ github.event.type }} + event_author: ${{ github.event.actor.login }} + event_body: "Trigger: ${{ github.event_name }}" + event_number: ${{ github.event.id }} + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}" + - name: Setup Go uses: actions/setup-go@v6 with: diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 93c7832c..85c78437 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -39,7 +39,7 @@ jobs: event_author: ${{ github.event.actor.login }} event_body: 'No event body.' event_number: ${{ github.event.id }} - event_url: "${{ github.repositoryUrl }}" + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}" - name: Run Test (workflow dispatch) if: ${{ github.event_name == 'workflow_dispatch' }} @@ -80,4 +80,4 @@ jobs: event_author: ${{ github.event.actor.login }} event_body: 'No event body.' event_number: ${{ github.event.id }} - event_url: "${{ github.repositoryUrl }}" + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}"