Added optional webhook call step
This commit is contained in:
parent
f948dd0b51
commit
66ab50c3ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user