Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 3755c71

Browse files
authored
DX-3084 Update git diff logic (#910)
1 parent 7357392 commit 3755c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/listener.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ jobs:
7272
- name: Check Diff
7373
run: |
7474
echo "========== modified files =========="
75-
git diff --name-only HEAD^ HEAD
75+
git diff --name-only ${{ github.base_ref }}
7676
7777
echo "========== check paths of modified files =========="
78-
git diff --name-only HEAD^ HEAD > files.txt
78+
git diff --name-only ${{ github.base_ref }} > files.txt
7979
while IFS= read -r file
8080
do
8181
if [[ $file != site/specs/* ]]; then

0 commit comments

Comments
 (0)