Skip to content

Commit

Permalink
ci: Leverage the git diff option
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 4, 2023
1 parent 2fe6e1b commit ed730bb
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 ed730bb

Please sign in to comment.