fix: use default config if input config is empty
This commit is contained in:
+7
-2
@@ -4,7 +4,7 @@ description: Use Updatecli to update deployments for ArgoCD
|
||||
inputs:
|
||||
updatecli-config:
|
||||
description: Override default updatecli config
|
||||
default: ${{ forge.action_path }}/updatecli.yaml
|
||||
default: ""
|
||||
registry-url:
|
||||
description: Registry URL
|
||||
default: git.cleverthis.com
|
||||
@@ -59,6 +59,11 @@ runs:
|
||||
echo "Unknown target branch. We are not coming from main, master, nor develop branch."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
configFilePath="${{ inputs.updatecli-config }}"
|
||||
if [ -z "$configFilePath" ]; then
|
||||
configFilePath="${{ forge.action_path }}/updatecli.yaml"
|
||||
fi
|
||||
|
||||
export TARGET_BRANCH
|
||||
updatecli apply --config ${{ inputs.updatecli-config }}
|
||||
updatecli apply --config "$configFilePath"
|
||||
|
||||
Reference in New Issue
Block a user