Skip to content

Merge pull request #6858 from desertkaz/desertkaz-patch-1 #345

Merge pull request #6858 from desertkaz/desertkaz-patch-1

Merge pull request #6858 from desertkaz/desertkaz-patch-1 #345

Workflow file for this run

name: Valid YAML syntax
on:
push:
paths:
- "data/*.yaml"
- "profiles/**.yaml"
pull_request:
paths:
- "data/*.yaml"
- "profiles/**.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
data/*.yaml
profiles/*.yaml
- name: Validate YAML file
if: steps.changed-files-excluded.outputs.any_changed == 'true'
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
yamllint -d relaxed -f parsable ${file}
done