Skip to content

Commit

Permalink
Use yamllint rules for fixer as well
Browse files Browse the repository at this point in the history
  • Loading branch information
krsna-m committed Mar 22, 2023
1 parent 058b8af commit e1f0e2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions composite/style/yaml/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ inputs:

runs:
using: "composite"
env:
YAMLLINT_RULES: "{extends: default, rules: {line-length: disable}}"
steps:
- uses: actions/checkout@v3
- run: pip install yamlfixer-opt-nc
shell: bash
- run: yamlfixer ${{ inputs.changed_yaml_files }}
- run: yamlfixer -C $YAMLLINT_RULES ${{ inputs.changed_yaml_files }}
shell: bash
continue-on-error: true
- uses: reviewdog/action-suggester@v1
Expand All @@ -23,7 +25,7 @@ runs:
- uses: reviewdog/action-yamllint@v1
with:
yamllint_flags: >
-d "{extends: default, rules: {line-length: disable}}"
-d $YAMLLINT_RULES
--no-warnings
${{ inputs.changed_yaml_files }}
filter_mode: 'file'

0 comments on commit e1f0e2c

Please sign in to comment.