20 lines
426 B
YAML
20 lines
426 B
YAML
name: Word Count
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "master" ]
|
|
pull_request:
|
|
branches: [ "main", "master" ]
|
|
|
|
jobs:
|
|
count-words:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Count words in Markdown files
|
|
run: |
|
|
echo "Counting words in all .md files..."
|
|
find . -name "*.md" -not -path "*/.*" -exec wc -w {} + | sort -rn
|