From fe814cdeae9afc2c4a2606d6ef5d6cab5cb40915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hi=E1=BA=BFu?= Date: Thu, 28 May 2026 11:58:20 +0700 Subject: [PATCH] fix main merge change classifier --- .github/workflows/ci-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 4944054..3ae509e 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -267,7 +267,7 @@ jobs: shell: bash run: | set -euo pipefail - changed="$(git diff-tree --no-commit-id --name-only -r HEAD || true)" + changed="$(git diff --name-only HEAD^1 HEAD || true)" non_gitops="$(printf '%s\n' "$changed" | grep -Ev '^(k8s/values-staging.yaml|k8s/values-prod.yaml|k8s/values-azure.yaml)$' || true)" if [[ -z "$non_gitops" ]]; then @@ -528,7 +528,7 @@ jobs: shell: bash run: | message="$(git log -1 --pretty=%s)" - changed="$(git diff-tree --no-commit-id --name-only -r HEAD || true)" + changed="$(git diff --name-only HEAD^1 HEAD || true)" if [[ "$message" == chore:\ promote\ images* ]]; then echo "should_promote=false" >> "$GITHUB_OUTPUT"