From 24255b69eeebb028c4091e90407ead19f21d319d Mon Sep 17 00:00:00 2001 From: ibuler Date: Sat, 14 Sep 2024 16:56:41 +0800 Subject: [PATCH] perf: diff with head not dev --- .github/workflows/build-base-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-base-image.yml b/.github/workflows/build-base-image.yml index dec5b8466..91450e4de 100644 --- a/.github/workflows/build-base-image.yml +++ b/.github/workflows/build-base-image.yml @@ -22,7 +22,7 @@ jobs: - name: Check conditions id: set_skip_flag run: | - if git diff --name-only dev | grep -E 'poetry.lock|pyproject.toml|Dockerfile-base|package.json|go.mod|yarn.lock|pom.xml|install_deps.sh';then + if git diff --name-only HEAD^ HEAD | grep -E 'poetry.lock|pyproject.toml|Dockerfile-base|package.json|go.mod|yarn.lock|pom.xml|install_deps.sh';then echo "Found deps file changes" else echo "Not found deps file changes, skip build"