Skip to content

Commit a38fc63

Browse files
fixing subdirectory fetching
1 parent d4b5472 commit a38fc63

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/generate-subdirectory-list.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ jobs:
1212
- name: Checkout repo
1313
uses: actions/checkout@v3
1414

15-
- name: Generate directories.json
15+
- name: Generate subdirectories.json
1616
run: |
17-
echo "[" > directories.json
17+
echo "[" > subdirectories.json
1818
for dir in */ ; do
1919
if [[ "$dir" != "assets/" && "$dir" != ".github/" ]]; then
20-
echo " \"${dir%/}\"," >> directories.json
20+
echo " \"${dir%/}\"," >> subdirectories.json
2121
fi
2222
done
23-
sed -i '$ s/,$//' directories.json
24-
echo "]" >> directories.json
23+
sed -i '$ s/,$//' subdirectories.json
24+
echo "]" >> subdirectories.json
2525
2626
- name: Commit and push
2727
run: |
2828
git config user.name "github-actions[bot]"
2929
git config user.email "github-actions[bot]@users.noreply.github.com"
30-
git add directories.json
31-
git commit -m "Update directories list" || echo "No changes"
30+
git add subdirectories.json
31+
git commit -m "Update subdirectories list" || echo "No changes"
3232
git push

subdirectories.json

Whitespace-only changes.

0 commit comments

Comments
 (0)