diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea42a4dfc9..e8d8a09632 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Generate list of tasks id: set-matrix run: | - echo "separateTestsNames=$(./gradlew listTasksAsJSON -q --console=plain | head -n 1)" >> $GITHUB_OUTPUT + echo "separateTestsNames=$(./gradlew listTasksAsJSON -q --console=plain | tail -n 1)" >> $GITHUB_OUTPUT build: name: build diff --git a/build.gradle b/build.gradle index e0bd3e310d..2f71fb3564 100644 --- a/build.gradle +++ b/build.gradle @@ -173,7 +173,9 @@ def splitTestConfig = [ List taskNames = splitTestConfig.keySet() as List task listTasksAsJSON { - System.out.println(new JsonBuilder(taskNames)) + doLast { + System.out.println(new JsonBuilder(taskNames)) + } } test {