Skip to content

Commit

Permalink
chore: update gen-readme workflow to include cloc
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Dec 7, 2024
1 parent 5a937f5 commit 87f7f4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/cloc.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/gen-readme.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Generate README
on:
push:
branches: [main]
paths:
- "README.md" # This isn't needed, but it's a good sanity check
- "README.tmpl.md"
- "setup.lua"
pull_request:
paths:
- "README.md" # This isn't needed, but it's a good sanity check
- "README.tmpl.md"
Expand All @@ -26,6 +32,11 @@ jobs:
- run: sudo ln -sf /usr/bin/lua5.3 /usr/bin/lua
- name: Generate README
run: ./scripts/gen-readme
- name: CLOC
uses: djdefi/cloc-action@6
with:
options: --md --report-file=cloc.md
- run: cat cloc.md >> README.md
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: Generate README"

0 comments on commit 87f7f4c

Please sign in to comment.