Skip to content

Commit f3abb4e

Browse files
authored
Merge pull request espressif#146 from adafruit/dont-warn-learn-library
Dont warn that learn isn't marked as an arduino library
2 parents a810ddd + 11bd667 commit f3abb4e

5 files changed

+6
-4
lines changed

actions_install.sh

100644100755
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ arduino-cli config init > /dev/null
3434
arduino-cli core update-index > /dev/null
3535

3636
# warn if this library does not have arduino-library tag in its topic
37-
if [ $GITHUB_REPOSITORY != "adafruit/ci-arduino" ]; then
38-
repo_topics=$(curl --request GET --url "https://api.github.com/repos/$GITHUB_REPOSITORY" | jq -r '.topics[]' | xargs)
37+
case "$GITHUB_REPOSITORY" in
38+
(*/ci-arduino|*/Adafruit_Learning_System_Guides) ;;
39+
(*)
40+
repo_topics=$(curl --request GET --url "https://api.github.com/repos/$GITHUB_REPOSITORY" | jq -r '.topics[]')
3941
if [[ ! $repo_topics =~ "arduino-library" ]]; then
4042
echo "::warning::arduino-library is not found in this repo topics. Please add this tag in repo About"
4143
fi
42-
fi
44+
esac
4345

build_platform.py

100644100755
File mode changed.

doxy_gen_and_deploy.sh

100644100755
File mode changed.

library_check.sh

100644100755
File mode changed.

run-clang-format.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
"""A wrapper script around clang-format, suitable for linting multiple files
33
and to use for continuous integration.
44

0 commit comments

Comments
 (0)