Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu09 committed Jan 10, 2021
1 parent f9bf21f commit 71e395e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# action-char-count

This GitHub Action counts the number of the characters in the files that match the pattern and comments it on the pull request.

## Inputs
### `token`

**Required** The GitHub Token to create a comment on a pull request.

### `patterns`

**Required** A list of files, and wildcard patterns to count the number of characters. See [@actions/glob](https://github.com/actions/toolkit/tree/master/packages/glob) for supported patterns.

## Example Usage

This is the example of counting the number of the characters in the all markdown files under the `articles` directory.

```yaml
on:
pull_request:
paths:
- "articles/**/*.md"

jobs:
char-count:
runs-on: ubuntu-latest
steps:
- uses: actions/checokut@v2
- uses: nobu09/action-char-count@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
patterns: articles/**/*.md
```

0 comments on commit 71e395e

Please sign in to comment.