From 29db481bed341632a39b747998c1844e110cb308 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 11:03:45 +0100 Subject: [PATCH] chore: modify test action [skip ci] --- .github/actions/notify/action.yaml | 8 -------- .github/workflows/tf-acc-test.yaml | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/actions/notify/action.yaml b/.github/actions/notify/action.yaml index f9957867..d475fd30 100644 --- a/.github/actions/notify/action.yaml +++ b/.github/actions/notify/action.yaml @@ -9,21 +9,17 @@ inputs: title: description: "The title of the notification." required: true - default: 'no title provided' subtitle: description: "The subtitle of the notification." - required: true default: 'no subtitle provided' image_slug: description: "The slug of the image to be included in the notification." - required: false default: 'git' event_author: description: "The author of the event." - required: true default: 'unknown' event_title: @@ -32,22 +28,18 @@ inputs: event_body: description: "The body of the event." - required: true default: 'no body provided' event_number: description: "The number of the event." - required: true default: 'no number provided' event_url: description: "The url of the event." - required: true default: 'none' status: description: "The status of the event." - required: true default: 'UNKNOWN' runs: diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index ef630175..03ff328c 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -45,15 +45,15 @@ jobs: with: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} title: [START] Terraform Acceptance Tests - subtitle: "${{ github.repository }}" - event_title: ${{ github.event_name }} - event_author: ${{ github.actor }} + subtitle: "${{ forgejo.repository }}" + event_title: ${{ forgejo.event_name }} + event_author: ${{ forgejo.actor }} event_body: ${{ inputs.test_file }} - event_number: ${{ github.run_id }} + event_number: ${{ forgejo.run_number }} event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}" - name: Run Test (workflow dispatch) - if: ${{ github.event_name == 'workflow_dispatch' }} + if: ${{ forgejo.event_name == 'workflow_dispatch' }} id: manual_run uses: ./.github/actions/acc_test with: @@ -71,7 +71,7 @@ jobs: test_file: ${{ inputs.test_file }} - name: Run Test (automatic) - if: ${{ github.event_name != 'workflow_dispatch' }} + if: ${{ forgejo.event_name != 'workflow_dispatch' }} id: automatic_run uses: ./.github/actions/acc_test with: @@ -91,9 +91,9 @@ jobs: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} title: [END] Terraform Acceptance Tests subtitle: ${{ (steps.manual_run.outputs.status || steps.automatic_run.outputs.status) }} - event_title: ${{ github.event_name }} - event_author: ${{ github.actor }} + event_title: ${{ forgejo.event_name }} + event_author: ${{ forgejo.actor }} event_body: "${{ steps.automatic_run.outputs.result || steps.manual_run.outputs.result }}" - event_number: ${{ github.event.id }} + event_number: ${{ forgejo.event.id }} event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}" - status: "${{ (steps.manual_run.outputs.status || steps.automatic_run.outputs.status) }}" + status: "${{ forgejo.event_name == 'workflow_dispatch' && steps.manual_run.outputs.status || steps.automatic_run.outputs.status }}"