mirror of
https://github.com/giraffate/clippy-action.git
synced 2024-11-21 15:39:32 +01:00
Merge pull request #15 from giraffate/update_readme_and_remove_debug
Update readme and remove debug
This commit is contained in:
commit
a6030db3b8
5 changed files with 11 additions and 18 deletions
12
README.md
12
README.md
|
@ -10,21 +10,13 @@ This action runs [Clippy](https://github.com/rust-lang/rust-clippy) with
|
|||
```yml
|
||||
name: clippy-action
|
||||
on: [pull_request]
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
jobs:
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install latest nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
- name: clippy-action
|
||||
uses: giraffate/clippy-action@main
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: giraffate/clippy-action@main
|
||||
with:
|
||||
reporter: 'github-pr-review'
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
15
action.yml
15
action.yml
|
@ -1,11 +1,18 @@
|
|||
name: 'Run Clippy with reviewdog'
|
||||
description: 'Provide a description here'
|
||||
author: 'Your name or organization here'
|
||||
description: '🐶 Run Clippy with reviewdog on pull requests to improve code review experience'
|
||||
author: 'Takayuki Nakata'
|
||||
branding:
|
||||
icon: "check-circle"
|
||||
color: "blue"
|
||||
inputs:
|
||||
github_token:
|
||||
description: "GITHUB_TOKEN."
|
||||
required: true
|
||||
default: ${{ github.token }}
|
||||
clippy_flags:
|
||||
description: "clippy flags. (cargo clippy --color never -q --message-format json `<clippy_flags>`)"
|
||||
required: false
|
||||
default: ""
|
||||
tool_name:
|
||||
description: "Tool name to use for reviewdog reporter"
|
||||
required: false
|
||||
|
@ -42,10 +49,6 @@ inputs:
|
|||
description: "the version of reviewdog"
|
||||
required: false
|
||||
default: latest
|
||||
cache:
|
||||
deprecation: "enable cache"
|
||||
default: true
|
||||
required: false
|
||||
runs:
|
||||
using: 'node16'
|
||||
main: 'dist/index.js'
|
||||
|
|
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
|
@ -75,8 +75,6 @@ async function run(): Promise<void> {
|
|||
}
|
||||
)
|
||||
|
||||
core.info(`debug: ${output.join('\n')}`)
|
||||
|
||||
process.env['REVIEWDOG_GITHUB_API_TOKEN'] =
|
||||
core.getInput('github_token')
|
||||
return await exec.exec(
|
||||
|
|
Loading…
Reference in a new issue