-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathaction.yml
37 lines (37 loc) · 1.29 KB
/
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
name: "ESLint Annotate from Report JSON"
description: "Annotates pull request diffs with warnings and errors from an ESLint report JSON file."
inputs:
GITHUB_TOKEN:
description: "The 'GITHUB_TOKEN' secret"
default: ${{ github.token }}
required: true
report-json:
description: "Path or glob pattern to locate the ESLint report JSON file"
default: "eslint_report.json"
required: false
only-pr-files:
description: "Only annotate files changed when run on the 'pull_request' event"
default: 'true'
required: false
fail-on-warning:
description: "Fail the GitHub Action when ESLint warnings are detected. Set to 'true' to enable."
default: 'false'
required: false
fail-on-error:
description: "Whether to fail the Github action when ESLint errors are detected. If set to false, the check that is created will still fail on ESLint errors."
default: 'true'
required: false
check-name:
description: "The name of the GitHub status check created."
default: 'ESLint Report Analysis'
required: false
markdown-report-on-step-summary:
description: "Whether to show a markdown report in the step summary."
default: 'false'
required: false
runs:
using: "node20"
main: "dist/index.js"
branding:
icon: "check-circle"
color: "yellow"