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 <noreply@anthropic.com>
This commit is contained in:
@@ -72,10 +72,12 @@ jobs:
|
|||||||
if git diff --staged --quiet; then
|
if git diff --staged --quiet; then
|
||||||
echo "No image tag changes to commit"
|
echo "No image tag changes to commit"
|
||||||
else
|
else
|
||||||
git commit -m "deploy: ${{ inputs.service-name }} ${IMAGE_TAG}
|
COMMIT_MSG="deploy: ${{ inputs.service-name }} ${IMAGE_TAG}"
|
||||||
|
COMMIT_MSG="${COMMIT_MSG}
|
||||||
|
|
||||||
Source: ${SHA}
|
Source: ${SHA}
|
||||||
Run: ${RUN_URL}"
|
Run: ${RUN_URL}"
|
||||||
|
git commit -m "${COMMIT_MSG}"
|
||||||
git push origin main
|
git push origin main
|
||||||
echo "Cluster repo updated — ArgoCD will sync within ~3 min"
|
echo "Cluster repo updated — ArgoCD will sync within ~3 min"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user