Skip to content

Merge pull request #6956 from hat071af/post-combat-segue-base-yaml-se… #432

Merge pull request #6956 from hat071af/post-combat-segue-base-yaml-se…

Merge pull request #6956 from hat071af/post-combat-segue-base-yaml-se… #432

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