Update validate_yamllint.yml
This commit is contained in:
10
.github/workflows/validate_yamllint.yml
vendored
10
.github/workflows/validate_yamllint.yml
vendored
@@ -20,7 +20,15 @@ jobs:
|
||||
files: '**/*.y*ml'
|
||||
separator: ","
|
||||
|
||||
#- name: Validate YAML
|
||||
# if: steps.changed-files.outputs.any_changed == 'true'
|
||||
# run: |
|
||||
# yamllint -c ./.rules/yamllint.yml -f github -s ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
|
||||
- name: Validate YAML
|
||||
if: steps.changed-files.outputs.any_changed == 'true'
|
||||
run: |
|
||||
yamllint -c ./.rules/yamllint.yml -f github -s ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
IFS=',' read -ra FILES <<< "${{ steps.changed-files.outputs.all_changed_files }}"
|
||||
for file in "${FILES[@]}"; do
|
||||
yamllint -c "./.rules/yamllint.yml" "$file"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user