From 7090ca622b88343b81ac246e2010c2d1a505286c Mon Sep 17 00:00:00 2001 From: Adrian Boguszewski Date: Fri, 29 Nov 2024 17:11:12 +0100 Subject: [PATCH] Update sanity-check.yml --- .github/workflows/sanity-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sanity-check.yml b/.github/workflows/sanity-check.yml index c9700da5..10f667c1 100644 --- a/.github/workflows/sanity-check.yml +++ b/.github/workflows/sanity-check.yml @@ -28,10 +28,10 @@ jobs: run: | if [[ "${{ github.event_name }}" == "pull_request" ]]; then # Get unique subproject directories from changed files in PR - subproject_dirs=$(git diff --name-only origin/master..HEAD | grep '^demos/' | xargs -I{} dirname "{}" | sort -u ) + subproject_dirs=$(git diff --name-only origin/master..HEAD | grep '^demos/' | xargs -I{} dirname "{}" | sort -u | jq -R -s -c 'split("\n")[:-1]') else # For scheduled runs, process all subprojects - subproject_dirs=$(find demos -type d -mindepth 1 -maxdepth 1 ! -name utils) + subproject_dirs=$(find demos -type d -mindepth 1 -maxdepth 1 ! -name utils | jq -R -s -c 'split("\n")[:-1]') fi echo "subproject_dirs=$subproject_dirs" >> $GITHUB_ENV - name: Categorize subprojects