Skip to content

Commit

Permalink
Update sanity-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianboguszewski authored Nov 29, 2024
1 parent 2a600f7 commit 7090ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7090ca6

Please sign in to comment.