From 43d5f8ad252589f8a2771f396f5d14b39f3ee441 Mon Sep 17 00:00:00 2001 From: Aaron Dill Date: Sat, 7 Dec 2024 04:44:39 -0600 Subject: [PATCH] chore: move lines of code to gen-readme --- .github/workflows/gen-readme.yml | 5 ++++- README.tmpl.md | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gen-readme.yml b/.github/workflows/gen-readme.yml index c4e5bced..47641ce6 100644 --- a/.github/workflows/gen-readme.yml +++ b/.github/workflows/gen-readme.yml @@ -31,7 +31,10 @@ jobs: uses: djdefi/cloc-action@6 with: options: --md --report-file=cloc.md - - run: cat cloc.md >> README.md && rm cloc.md + # Note: initial newline is required because files don't end with one + - run: printf '\n%s\n' '### Lines of code' >> README.md + cat cloc.md >> README.md + rm cloc.md - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "chore: Generate README" diff --git a/README.tmpl.md b/README.tmpl.md index f4fe951a..f4838373 100644 --- a/README.tmpl.md +++ b/README.tmpl.md @@ -58,7 +58,3 @@ The configuration should handle this without issue. ```shell startx "$(which awesome)" -c "/rc.lua" ``` - -### Lines of code - -