From 5cdd1ba740b48fe4ae1496ae68e1f033275425d7 Mon Sep 17 00:00:00 2001 From: hurui200320 Date: Fri, 24 Oct 2025 07:33:18 +0000 Subject: [PATCH 1/3] typo: updatecly -> updatecli --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 9b359eb..d3a6aa3 100644 --- a/action.yaml +++ b/action.yaml @@ -61,4 +61,4 @@ runs: fi export TARGET_BRANCH - updatecly apply --config ${{ inputs.updatecli-config }} + updatecli apply --config ${{ inputs.updatecli-config }} -- 2.52.0 From 71cf145bf061fb832a4709b1d78212a486ecbf31 Mon Sep 17 00:00:00 2001 From: Rui Hu Date: Fri, 24 Oct 2025 16:47:27 +0800 Subject: [PATCH 2/3] fix: use default config if input config is empty --- action.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index d3a6aa3..bd2959f 100644 --- a/action.yaml +++ b/action.yaml @@ -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" -- 2.52.0 From 8485dd066f0eba4ef359753a996b43d3856225a3 Mon Sep 17 00:00:00 2001 From: Rui Hu Date: Fri, 24 Oct 2025 17:03:27 +0800 Subject: [PATCH 3/3] fix: fix wrong env name in updatecli config --- updatecli.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updatecli.yaml b/updatecli.yaml index 2fffa0b..7bf65bb 100644 --- a/updatecli.yaml +++ b/updatecli.yaml @@ -54,9 +54,9 @@ actions: kind: gitea/pullrequest scmid: helm-chart spec: - url: '{{ requiredEnv "SERVER_URL" }}' - owner: '{{ requiredEnv "REPO_OWNER" }}' - repository: '{{ requiredEnv "REPO_NAME" }}' + url: '{{ requiredEnv "REGISTRY_URL" }}' + owner: '{{ requiredEnv "CHARTS_REPO_ORG" }}' + repository: '{{ requiredEnv "CHARTS_REPO_NAME" }}' username: '{{ requiredEnv "REGISTRY_USER" }}' token: '{{ requiredEnv "REGISTRY_PASSWORD" }}' title: 'chore({{ requiredEnv "TARGET_NAME" }}): bump chart version and set app version to {{ source "appVersion" }}' -- 2.52.0