Skip to content

Commit be96bcb

Browse files
committed
Start with only showing the changed directories
1 parent eec7b09 commit be96bcb

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/test-check.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,9 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
- name: Get Root Directories
13-
id: get_root_directories
1413
run: |
1514
git diff --name-only origin/main -- $(git rev-parse --abbrev-ref HEAD) | while IFS= read -r file; do
1615
dir=$(dirname "$file")
1716
root_dir=$(cd "$dir"; cd -; pwd)
18-
echo "::set-output name=root_directories::$root_dir"
19-
done
20-
21-
print-root-directories:
22-
runs-on: ubuntu-latest
23-
needs: get-root-directories
24-
steps:
25-
- name: Print Root Directories
26-
run: |
27-
echo "Root directories:"
28-
for root_dir in ${{ jobs.get-root-directories.outputs.root_directories.split(',') }}; do
29-
echo " - $root_dir"
17+
echo "$root_dir"
3018
done

0 commit comments

Comments
 (0)