🐳 Add support for optional success-url

This commit is contained in:
Jan Oberhauser 2022-02-25 19:39:35 +01:00
parent 345fa7c9c3
commit 3dab1b0302

View file

@ -22,6 +22,10 @@ on:
type: boolean
required: true
default: false
success-url:
description: 'URL to call after Docker Image got built successfully.'
required: false
default: ''
jobs:
build:
@ -54,3 +58,7 @@ jobs:
platforms: linux/amd64
push: true
tags: n8nio/n8n:${{ github.event.inputs.tag || 'nightly' }}
- name: Call Success URL - optionally
run: |
[[ "${{github.event.inputs.success-url}}" != "" ]] && curl -I ${{github.event.inputs.success-url}} || echo ""
shell: bash