Skip to content

Commit

Permalink
chore: update README tree generation process
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolai Emil Damm <[email protected]>
  • Loading branch information
devantler committed Dec 22, 2024
1 parent ba3e341 commit ef436c1
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/readme-tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef436c1

Please sign in to comment.