From 82978f072b6e45813ef46b9a3159445677f497a2 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Wed, 15 Apr 2026 10:37:14 +0000 Subject: [PATCH] fix(deploy): guard commit step against no-op changes Guard the infra commit step in deploy-dev and deploy-uat jobs with `git diff --cached --quiet` to prevent CI failure when kustomization has no actual image tag changes. Refs: CAR-674 Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 202a9ef..791c984 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -553,6 +553,7 @@ jobs: git config user.name "cartsnitch-ci[bot]" git config user.email "cartsnitch-ci[bot]@users.noreply.github.com" git add apps/overlays/dev/kustomization.yaml + git diff --cached --quiet && echo "No image changes to deploy" && exit 0 git commit -m "ci(dev): update cartsnitch, auth, receiptwitness, and api images" git pull --rebase origin main git push origin main @@ -651,6 +652,7 @@ jobs: git config user.name "cartsnitch-ci[bot]" git config user.email "cartsnitch-ci[bot]@users.noreply.github.com" git add apps/overlays/uat/kustomization.yaml + git diff --cached --quiet && echo "No image changes to deploy" && exit 0 git commit -m "ci(uat): update cartsnitch, auth, receiptwitness, and api images" git pull --rebase origin main git push origin main