-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
39 lines (33 loc) · 992 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Run PHP_CodeSniffer with reviewdog'
description: '🐶 Run PHP_CodeSniffer with reviewdog on pull requests to improve code review experience.'
author: 'hrysd'
inputs:
github_token:
description: 'GITHUB_TOKEN'
default: '${{ github.token }}'
### Flags for reviewdog ###
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-pr-review].'
default: 'github-pr-check'
### Flags for PHP_CodeSniffer ###
standard:
description: Coding standard or path to configuration file
required: true
target_directory:
description: Directory to check by PHP_CodeSniffer
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github_token }}
- ${{ inputs.level }}
- ${{ inputs.reporter }}
- ${{ inputs.standard }}
- ${{ inputs.target_directory }}
branding:
icon: 'check'
color: 'blue'