|
1 |
| -name: 'Run haml-lint via reviewdog' |
2 |
| -description: '🐶 Run haml-lint with reviewdog on pull requests to improve code review experience.' |
3 |
| -author: 'pcothenet' |
| 1 | +name: "Run haml-lint via reviewdog" |
| 2 | +description: "🐶 Run haml-lint with reviewdog on pull requests to improve code review experience." |
| 3 | +author: "pcothenet" |
4 | 4 | inputs:
|
5 | 5 | github_token:
|
6 |
| - description: 'GITHUB_TOKEN' |
7 |
| - default: '${{ github.token }}' |
| 6 | + description: "GITHUB_TOKEN" |
| 7 | + default: "${{ github.token }}" |
8 | 8 | ### Flags for haml-lint
|
9 | 9 | haml_lint_flags:
|
10 |
| - description: 'Additional haml-lint flags' |
11 |
| - default: '' |
| 10 | + description: "Additional haml-lint flags" |
| 11 | + default: "" |
| 12 | + haml_lint_version: |
| 13 | + description: "The version of haml_lint to use. Use "gemfile" to use the version from Gemfile.lock" |
12 | 14 | tool_name:
|
13 |
| - description: 'Tool name to use for reviewdog reporter' |
14 |
| - default: 'haml-lint' |
15 |
| - ### Flags for rubocop ### |
| 15 | + description: "Tool name to use for reviewdog reporter" |
| 16 | + default: "haml-lint" |
| 17 | + ### Flags for rubocop ### |
16 | 18 | rubocop_version:
|
17 |
| - description: 'Rubocop version' |
| 19 | + description: "The version of rubocop to use. Use "gemfile" to use the version from Gemfile.lock" |
18 | 20 | rubocop_extensions:
|
19 |
| - description: 'Rubocop extensions' |
20 |
| - default: 'rubocop-rails rubocop-performance rubocop-rspec rubocop-i18n rubocop-rake' |
| 21 | + description: "Rubocop extensions" |
| 22 | + default: "rubocop-rails rubocop-performance rubocop-rspec rubocop-i18n rubocop-rake" |
21 | 23 | ### Flags for reviewdog ###
|
22 | 24 | level:
|
23 |
| - description: 'Report level for reviewdog [info,warning,error]' |
24 |
| - default: 'error' |
| 25 | + description: "Report level for reviewdog [info,warning,error]" |
| 26 | + default: "error" |
25 | 27 | reporter:
|
26 |
| - description: 'Reporter of reviewdog command [github-pr-check,github-pr-review].' |
27 |
| - default: 'github-pr-check' |
| 28 | + description: "Reporter of reviewdog command [github-pr-check,github-pr-review]." |
| 29 | + default: "github-pr-check" |
28 | 30 | filter_mode:
|
29 | 31 | description: |
|
30 | 32 | Filtering for the reviewdog command [added,diff_context,file,nofilter].
|
31 | 33 | Default is added.
|
32 |
| - default: 'added' |
| 34 | + default: "added" |
33 | 35 | fail_on_error:
|
34 | 36 | description: |
|
35 | 37 | Exit code for reviewdog when errors are found [true,false]
|
36 | 38 | Default is `false`.
|
37 |
| - default: 'false' |
| 39 | + default: "false" |
38 | 40 | reviewdog_flags:
|
39 |
| - description: 'Additional reviewdog flags' |
40 |
| - default: '' |
| 41 | + description: "Additional reviewdog flags" |
| 42 | + default: "" |
41 | 43 | workdir:
|
42 | 44 | description: "The directory from which to look for and run Rubocop. Default '.'"
|
43 |
| - default: '.' |
| 45 | + default: "." |
44 | 46 | skip_install:
|
45 | 47 | description: "Do not install Rubocop or its extensions. Default: `false`"
|
46 |
| - default: 'false' |
| 48 | + default: "false" |
47 | 49 | use_bundler:
|
48 | 50 | description: "Run Rubocop with bundle exec. Default: `false`"
|
49 |
| - default: 'false' |
| 51 | + default: "false" |
50 | 52 |
|
51 | 53 | runs:
|
52 |
| - using: 'composite' |
| 54 | + using: "composite" |
53 | 55 | steps:
|
54 | 56 | - run: $GITHUB_ACTION_PATH/script.sh
|
55 | 57 | shell: sh
|
|
59 | 61 | # https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611
|
60 | 62 | INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
|
61 | 63 | INPUT_HAML_LINT_FLAGS: ${{ inputs.haml_lint_flags }}
|
| 64 | + INPUT_HAML_LINT_VERSION: ${{ inputs.haml_lint_version }} |
62 | 65 | INPUT_RUBOCOP_VERSION: ${{ inputs.rubocop_version }}
|
63 | 66 | INPUT_RUBOCOP_EXTENSIONS: ${{ inputs.rubocop_extensions }}
|
64 | 67 | INPUT_TOOL_NAME: ${{ inputs.tool_name }}
|
|
71 | 74 | INPUT_SKIP_INSTALL: ${{ inputs.skip_install }}
|
72 | 75 | INPUT_USE_BUNDLER: ${{ inputs.use_bundler }}
|
73 | 76 |
|
74 |
| -# runs: |
75 |
| -# using: 'docker' |
76 |
| -# image: 'Dockerfile' |
77 |
| - |
78 | 77 | branding:
|
79 |
| - icon: 'check-circle' |
80 |
| - color: 'blue' |
| 78 | + icon: "check-circle" |
| 79 | + color: "blue" |
0 commit comments