diff --git a/.github/actions/notify/action.yaml b/.github/actions/notify/action.yaml index 0de7da68..e3ca0499 100644 --- a/.github/actions/notify/action.yaml +++ b/.github/actions/notify/action.yaml @@ -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' }}" \ diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 20101c67..ec7316ee 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -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' }}