Skip to content

Commit

Permalink
update example workflow to real-world example
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Feb 8, 2024
1 parent c6e8edb commit ddf6320
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,29 @@ It depends on [clippy-reviewdog-filter](https://github.com/qnighy/clippy-reviewd

```yaml
name: reviewdog / clippy
on: pull_request

on:
push:
branches: [ main ]
pull_request:

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install clippy
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- uses: sksat/action-clippy@main
- uses: sksat/action-clippy@v0.7.0
if: github.event_name == 'push'
with:
reporter: github-check

- uses: sksat/action-clippy@v0.7.0
if: github.event_name == 'pull_request'
with:
reporter: github-pr-review
```
Expand Down

0 comments on commit ddf6320

Please sign in to comment.