Update validate_yamllint.yml
This commit is contained in:
8
.github/workflows/validate_yamllint.yml
vendored
8
.github/workflows/validate_yamllint.yml
vendored
@@ -21,16 +21,12 @@ jobs:
|
|||||||
files: '**/*.y*ml'
|
files: '**/*.y*ml'
|
||||||
separator: ","
|
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
|
- name: Validate YAML
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
IFS=',' read -ra FILES <<< "${{ steps.changed-files.outputs.all_changed_files }}"
|
IFS=',' read -ra FILES <<< "${{ steps.changed-files.outputs.all_changed_files }}"
|
||||||
for file in "${FILES[@]}"; do
|
for file in "${FILES[@]}"; do
|
||||||
echo "Validating $file"
|
echo "::group::Validating $file"
|
||||||
yamllint -c "./.rules/yamllint.yml" "$file"
|
yamllint -c "./.rules/yamllint.yml" "$file"
|
||||||
|
echo "::endgroup::"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user