Skip to content

Commit 529f2ae

Browse files
committed
Use better change comparision command to detect changes
1 parent cb07a77 commit 529f2ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/dot-org-content.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626
id: check_changes
2727
run: |
2828
cd dot-org-repo
29-
commit1=$(git rev-parse HEAD)
30-
commit2=$(git rev-parse HEAD^)
3129
32-
if git diff --name-only $commit2 $commit1 | grep '^xml/en/'; then
30+
if git whatchanged --since="1 day ago" -- _xml/en/; then
3331
echo "Changes detected in /en"
3432
echo "changed=true" >> $GITHUB_OUTPUT
3533
else

0 commit comments

Comments
 (0)