chore: modify test action

[skip ci]
This commit is contained in:
Marcel S. Henselin 2026-03-27 11:03:45 +01:00
parent 8886b60c25
commit 29db481bed
2 changed files with 10 additions and 18 deletions

View file

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

View file

@ -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 }}"