Added optional webhook call step
This commit is contained in:
parent
f948dd0b51
commit
66ab50c3ac
|
@ -8,6 +8,9 @@ on:
|
||||||
default: false
|
default: false
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
webhook_url:
|
||||||
|
description: Webhook to call after build is completed
|
||||||
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
OCI_REPO: git.huizinga.dev/dreaded_x/${{ gitea.event.repository.name}}
|
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 }} \
|
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
|
||||||
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')
|
$(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
|
- name: Notify build status
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
|
|
Loading…
Reference in New Issue
Block a user