Skip to content

Commit a7cfb26

Browse files
committed
new command
1 parent a426ce3 commit a7cfb26

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/all-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ jobs:
7474
- name: List packages
7575
id: packages
7676
run: |
77-
dirs=$(find . -type d -printf "\"%p\",")
78-
json_array=$(echo "[$dirs]" | sed 's/,$//' | jq -c '.')
79-
echo "packages=$json_array" >> "$GITHUB_OUTPUT"
77+
DIRS=$(find . -maxdepth 1 -mindepth 1 -type d -printf '"%f"\n' | tr '\n' ',' | sed 's/,$//')
78+
echo "packages=[$DIRS]" >> $GITHUB_OUTPUT
8079
working-directory: pkg/
8180

8281
test_packages:

0 commit comments

Comments
 (0)