Skip to content

Commit

Permalink
dependabot: fix diff script pt2 (#13789)
Browse files Browse the repository at this point in the history
* dependabot: fix diff script pt2

* refactor
  • Loading branch information
reakaleek authored Jul 29, 2024
1 parent ea72506 commit 857d01a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/update-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ jobs:
- name: Check if NOTICE.txt has changed
id: check-notice-diff
run: |
result="$(git diff --exit-code NOTICE.txt)"
if [[ "$result" -eq 0 ]]; then
echo "changed=false" >> "$GITHUB_OUTPUT"
if git diff --quiet NOTICE.txt; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
# inspired by https://gist.github.com/swinton/03e84635b45c78353b1f71e41007fc7c
- name: Commit changes (signed)
Expand Down

0 comments on commit 857d01a

Please sign in to comment.