diff --git a/.github/workflows/update-dependabot-pr.yml b/.github/workflows/update-dependabot-pr.yml index 9efa03895b0..1f6b0d29c20 100644 --- a/.github/workflows/update-dependabot-pr.yml +++ b/.github/workflows/update-dependabot-pr.yml @@ -28,7 +28,7 @@ jobs: - name: Check if NOTICE.txt has changed id: check-notice-diff run: | - if git diff --quiet NOTICE.txt; then + if git diff-index --quiet HEAD -- NOTICE.txt; then echo "changed=false" >> "$GITHUB_OUTPUT" else echo "changed=true" >> "$GITHUB_OUTPUT"