chore: modify test action

[skip ci]
This commit is contained in:
Marcel S. Henselin 2026-03-27 10:18:36 +01:00
parent 66b3858351
commit 06e61f2b3a
2 changed files with 4 additions and 1 deletions

View file

@ -19,6 +19,7 @@ inputs:
image_url:
description: "The URL of the image to be included in the notification."
required: false
default: 'https://cdn.jsdelivr.net/npm/simple-icons@v16/icons/git.svg'
event_author:
description: "The author of the event."
@ -84,7 +85,7 @@ runs:
PAYLOAD=$(jq -n -r \
--arg header "${{ inputs.title }}" \
--arg subtitle "${{ inputs.subtitle || '' }}" \
--arg imgurl "${{ inputs.image_url || 'https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/git.png' }}" \
--arg imgurl "${{ inputs.image_url }}" \
--arg title "${{ inputs.event_title || 'no event title given' }}" \
--arg body "${{ inputs.event_body || 'no event body given' }}" \
--arg author "${{ inputs.event_author || 'no event author given' }}" \

View file

@ -51,6 +51,7 @@ jobs:
event_body: ${{ inputs.test_file }}
event_number: ${{ github.run_id }}
event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}"
image_url: 'https://cdn.simpleicons.org/git/483d8b'
- name: Run Test (workflow dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
@ -96,3 +97,4 @@ jobs:
event_body: "${{ steps.automatic_run.outputs.result || steps.manual_run.outputs.result }}"
event_number: ${{ github.event.id }}
event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}"
image_url: ${{ (steps.manual_run.outputs.status || steps.automatic_run.outputs.status) != 'SUCCESS' && 'https://cdn.simpleicons.org/git/8b0000/dc143c' || 'https://cdn.simpleicons.org/git/006400/228b22' }}