New: save wordcounts in PR Comment

This commit is contained in:
2026-02-28 00:23:55 +01:00
committed by Konstantin Hintermayer
parent 152ddf5bcc
commit 71854cd101
4 changed files with 127 additions and 3 deletions

View File

@@ -13,7 +13,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Count words in Markdown files
- name: Run Gemini Review
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_URL: ${{ github.server_url }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
echo "Counting words in all .md files..."
find . -name "*.md" -not -path "*/.*" -exec wc -w {} + | sort -rn
cd scripts/wordcount
go build -o wordcount_bin main.go
cd ../..
./scripts/wordcount/wordcount_bin