Skip to content

Commit

Permalink
readme, v4 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Dec 18, 2023
1 parent 57a75f4 commit 3b738aa
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/grit-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

Check warning on line 14 in .github/workflows/grit-check.yaml

View workflow job for this annotation

GitHub Actions / run

use_ubuntu

This is a no-op warning meant for testing. You can ignore it.
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: grit-check
uses: ./
with:
Expand Down
52 changes: 51 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# github-action-check
# Grit GitHub Action

This action runs the Grit CLI to report any violations of your configured [Grit patterns](https://docs.grit.io/guides/config).

## Usage

You can add it as a step in your GitHub Actions workflow to automatically check for violations on every push:

```
- name: Grit
uses: getgrit/github-action-check@v0
with:
# Optional additional arguments to pass to the `grit check` command
args: ''
```

## Inputs

### `args`
Specify [additional arguments](https://docs.grit.io/cli/reference#grit-check) to pass to the `grit check` command.

By default, only warning and error patterns are reported. To include info patterns, use `--level`.

```
- name: Grit
uses: getgrit/github-action-check@v0
with:
args: '--level info'
```

## Example workflow

```
name: grit-check
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: grit-check
uses: getgrit/github-action-check@v0
```

## License
This action code is released under the [MIT License](LICENSE).
Expand Down

0 comments on commit 3b738aa

Please sign in to comment.