-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update README tree generation process
Signed-off-by: Nikolai Emil Damm <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,19 @@ jobs: | |
name: readme-tree | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create README Tree | ||
uses: RavelloH/[email protected] | ||
with: | ||
showdirectoryname: "yes" | ||
- name: Install tree | ||
run: sudo apt-get install -y tree | ||
- name: Generate README Tree | ||
run: | | ||
tree -d -L 3 -I 'images|media' > tree.txt | ||
sed -i '' '/<!-- readme-tree start -->/,/<!-- readme-tree end -->/c\ | ||
<!-- readme-tree start -->\ | ||
```text\ | ||
'"$(cat tree.txt | sed 's/$/\\/')"' | ||
```\ | ||
<!-- readme-tree end -->\ | ||
' README.md | ||
rm tree.txt | ||
- name: Generate GitHub App Token | ||
uses: tibdex/github-app-token@v2 | ||
id: generate-token | ||
|