GitHub Action to count the number of characters and comment on a pull request
Required The GitHub Token to create a comment on a pull request.
Required A list of files, and wildcard patterns to count the number of characters. See @actions/glob for supported patterns.
on:
pull_request:
paths:
- "articles/**/*.md"
jobs:
char-count:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12.x
- uses: miyajan/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
patterns: articles/**/*.md