Skip to content

Commit c148f92

Browse files
committed
Test against PR ref not HEAD
1 parent 9442320 commit c148f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/preview-readme.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Check for README changes
2626
id: check-changes
2727
run: |
28-
if git diff --quiet HEAD -- README.md
28+
if git diff --quiet ${{ github.event.pull_request.head.ref }} -- README.md
2929
then
3030
echo "has_changes=false" >> $GITHUB_OUTPUT
3131
else

0 commit comments

Comments
 (0)