Skip to content

Commit

Permalink
Try to fix check_diff.sh
Browse files Browse the repository at this point in the history
The Arduino and Zephyr tests should be running
  • Loading branch information
petervdonovan committed Feb 23, 2024
1 parent ab54a2e commit 4de5838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ changes() {
git diff --name-only HEAD $(git merge-base HEAD origin/main)
}

if changes | grep "$2" | grep -q -v "^.*md\|txt$"; then
echo "changed_$3=1" >> $GITHUB_OUTPUT
if changes | grep "$1" | grep -q -v "^.*md\|txt$"; then
echo "changed_$2=1" >> $GITHUB_OUTPUT
else
echo "changed_$3=0" >> $GITHUB_OUTPUT
fi
echo "changed_$2=0" >> $GITHUB_OUTPUT
fi

0 comments on commit 4de5838

Please # to comment.