Skip to content

Commit

Permalink
ci: Leverage the git diff option (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Nov 4, 2023
1 parent 2fe6e1b commit 199d0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/requirement-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ jobs:

- name: Check for changes
run: |
if [ $(git status --porcelain | wc -l) -eq "0" ]; then
if git diff --exit-code; then
echo "🟢 No change detected."
echo "requirement_checker_changed=false" >> $GITHUB_ENV
else
Expand Down

0 comments on commit 199d0b0

Please sign in to comment.