This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new cc0b758e562 (chores) ci: avoid skipping core tests
cc0b758e562 is described below
commit cc0b758e5625e45671d44179b32e24050fcfcdc8
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Apr 17 10:42:15 2024 +0200
(chores) ci: avoid skipping core tests
This should ensure that the incremental script will proceed when there are
only core changes.
---
.github/actions/incremental-build/incremental-build.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/actions/incremental-build/incremental-build.sh
b/.github/actions/incremental-build/incremental-build.sh
index 9cbbf1fcc9a..c16823489ac 100755
--- a/.github/actions/incremental-build/incremental-build.sh
+++ b/.github/actions/incremental-build/incremental-build.sh
@@ -66,6 +66,8 @@ function main() {
if [[ ${projectRoot} = "." ]] ; then
echo "The root project is affected, so a complete build is triggered"
buildAll=true
+ totalAffected=1
+ break
elif [[ ${projectRoot} != "${lastProjectRoot}" ]] ; then
(( totalAffected ++ ))
pl="$pl,${projectRoot}"
@@ -73,6 +75,7 @@ function main() {
fi
fi
done
+
if [[ ${totalAffected} = 0 ]] ; then
echo "There is nothing to build"
exit 0