diff --git a/.github/workflows/update-dependabot-pr.yml b/.github/workflows/update-dependabot-pr.yml index ba63c6491bf..b0fc37c127c 100644 --- a/.github/workflows/update-dependabot-pr.yml +++ b/.github/workflows/update-dependabot-pr.yml @@ -26,14 +26,14 @@ jobs: - name: Update NOTICE.txt run: make notice - name: Debug diff - run: git diff-index HEAD -- NOTICE.txt + run: git status --porcelain - name: Check if NOTICE.txt has changed id: check-notice-diff run: | - if git diff-index --quiet HEAD -- NOTICE.txt; then - echo "changed=false" >> "$GITHUB_OUTPUT" - else + if git status --porcelain | grep -q 'NOTICE.txt'; then echo "changed=true" >> "$GITHUB_OUTPUT" + else + echo "changed=false" >> "$GITHUB_OUTPUT" fi - name: Debug output run: |-