From c22e88f429aa1416e8b300e3bbed5f6f481b345f Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Tue, 6 Aug 2024 09:18:42 +0200 Subject: [PATCH] Fix command to determine the diff (#13832) --- .github/workflows/update-dependabot-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"