perf: diff with head not dev

This commit is contained in:
ibuler 2024-09-14 16:56:41 +08:00 committed by 老广
parent 3bb51b39c4
commit 24255b69ee

View File

@ -22,7 +22,7 @@ jobs:
- name: Check conditions - name: Check conditions
id: set_skip_flag id: set_skip_flag
run: | 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" echo "Found deps file changes"
else else
echo "Not found deps file changes, skip build" echo "Not found deps file changes, skip build"