Skip to content

Commit

Permalink
Fixed changed subproject detection
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianboguszewski authored Nov 29, 2024
1 parent b3af363 commit 86b6c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ 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 "{}" | jq -R -s -c 'split("\n"))
else
# For scheduled runs, process all subprojects
subproject_dirs=$(find demos -type d -mindepth 1 -maxdepth 1 ! -name utils)
Expand Down

0 comments on commit 86b6c13

Please sign in to comment.