From 8762df6ab5826467dc4340b4e7755d4be08f003f Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 17 Sep 2023 20:09:55 +0200 Subject: [PATCH] Update action.yml --- make-yaml-redirector/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/make-yaml-redirector/action.yml b/make-yaml-redirector/action.yml index ed60776..0cffb5c 100644 --- a/make-yaml-redirector/action.yml +++ b/make-yaml-redirector/action.yml @@ -7,7 +7,7 @@ inputs: required: true port: description: Repository - required: true + required: false geodb: description: geodb required: true @@ -46,7 +46,9 @@ runs: geodb: ${{ inputs.geodb }} asndb: ${{ inputs.asndb }} dl_map: ${{ inputs.dl_map }} - bind: ':${PORT}' + EOF + [[ -n ${PORT} ]] && echo "bind: ':${PORT}'" >> dlrouter-${FILENAME}.yaml + cat <<- EOF >> dlrouter-${FILENAME}.yaml # Reload authorization key reloadKey: ${{ inputs.reloadKey }}