Added optional webhook call step

This commit is contained in:
Dreaded_X 2025-04-23 20:07:23 +02:00
parent f948dd0b51
commit ebef92d858
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -8,6 +8,9 @@ on:
default: false
required: false
type: boolean
webhook_url:
description: Webhook to call after build is completed
type: string
env:
OCI_REPO: git.huizinga.dev/dreaded_x/${{ gitea.event.repository.name}}
@ -95,6 +98,11 @@ jobs:
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')
- name: Call webhook
if: inputs.webhook_url != ""
run: |
curl ${{ inputs.webhook_url }}
- name: Notify build status
if: failure()
uses: appleboy/telegram-action@master