From 7203c9a8f78367532c60db2d633c8f092433848f Mon Sep 17 00:00:00 2001 From: Martin Maslyankov Date: Fri, 3 Apr 2026 06:23:34 +0300 Subject: [PATCH] fix(deploy): fix multiline commit message truncation in deploy-k8s.yaml Gitea Actions expression evaluator truncates multiline strings in git commit -m "...", causing EOF while looking for matching quote. Build the commit message in a variable instead. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/deploy-k8s.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-k8s.yaml b/.gitea/workflows/deploy-k8s.yaml index d852978..ace3e1b 100644 --- a/.gitea/workflows/deploy-k8s.yaml +++ b/.gitea/workflows/deploy-k8s.yaml @@ -72,10 +72,12 @@ jobs: if git diff --staged --quiet; then echo "No image tag changes to commit" else - git commit -m "deploy: ${{ inputs.service-name }} ${IMAGE_TAG} + COMMIT_MSG="deploy: ${{ inputs.service-name }} ${IMAGE_TAG}" + COMMIT_MSG="${COMMIT_MSG} Source: ${SHA} Run: ${RUN_URL}" + git commit -m "${COMMIT_MSG}" git push origin main echo "Cluster repo updated — ArgoCD will sync within ~3 min" fi