CI: run also on test.sh changes

The CI only tests packages if a Makefile changed, e.g. containing a
version or release bump. This covers package related files as at least
the package release must change whenever a file was touched.

The `test.sh` file is a runtime test used to verify working packages
within OpenWrt containers. This file can independently change and will
never be included in the package ipk files, therefore trigger the CI on
its changes as well.

Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Paul Spooren 2020-09-17 09:00:08 -10:00
parent 0d2e3fa5d4
commit b36bb173b3
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ jobs:
run: |
# only detect packages with changed Makefiles
PACKAGES="$(git diff --diff-filter=d --name-only origin/master \
| grep 'Makefile$' | grep -Ev '/files/|/src/' \
| grep -E 'Makefile$|test.sh$' | grep -Ev '/files/|/src/' \
| awk -F/ '{ print $(NF-1) }' | tr '\n' ' ')"
# fallback to test packages if nothing explicitly changes this is