From ef436c1510c32eb9ac951ac07020850b321cd208 Mon Sep 17 00:00:00 2001 From: Nikolai Emil Damm Date: Sun, 22 Dec 2024 21:31:02 +0100 Subject: [PATCH] chore: update README tree generation process Signed-off-by: Nikolai Emil Damm --- .github/workflows/readme-tree.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/readme-tree.yaml b/.github/workflows/readme-tree.yaml index 25a018b9f..94db206aa 100644 --- a/.github/workflows/readme-tree.yaml +++ b/.github/workflows/readme-tree.yaml @@ -15,10 +15,19 @@ jobs: name: readme-tree steps: - uses: actions/checkout@v4 - - name: Create README Tree - uses: RavelloH/readme-tree@v1.1.0 - 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 '' '//,//c\ + \ + ```text\ + '"$(cat tree.txt | sed 's/$/\\/')"' + ```\ + \ + ' README.md + rm tree.txt - name: Generate GitHub App Token uses: tibdex/github-app-token@v2 id: generate-token