Skip to content

Commit 8044515

Browse files
committed
Try something that works locally
1 parent 5d07800 commit 8044515

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/test-check.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,4 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- name: Get Root Directories
1313
run: |
14-
git diff --name-only origin/master -- $(git rev-parse --abbrev-ref HEAD) | while IFS= read -r file; do
15-
dir=$(dirname "$file")
16-
root_dir=$(cd "$dir"; cd -; pwd)
17-
echo "$root_dir"
18-
done
14+
git diff --name-only origin/HEAD | while IFS= read -r file; do [[ -d "${file%%/*}" ]] && echo "${file%%/*}"; done | sort | uniq

0 commit comments

Comments
 (0)