From 4de5838b76afdc5b1d370c1a8517e95819ce0e2f Mon Sep 17 00:00:00 2001 From: Peter Donovan Date: Thu, 22 Feb 2024 19:44:03 -0800 Subject: [PATCH] Try to fix check_diff.sh The Arduino and Zephyr tests should be running --- .github/scripts/check-diff.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/check-diff.sh b/.github/scripts/check-diff.sh index 649b955a0..3a346535b 100755 --- a/.github/scripts/check-diff.sh +++ b/.github/scripts/check-diff.sh @@ -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 \ No newline at end of file + echo "changed_$2=0" >> $GITHUB_OUTPUT +fi