Skip to content

Commit

Permalink
dependabot: use git-status instead of git-diff (#13846)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Aug 7, 2024
1 parent 373d8f8 commit 094e085
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down

0 comments on commit 094e085

Please sign in to comment.