Skip to content

Bump registry_tools/GEDCOM.io from 03ccd49 to f8e307f (#93) #137

Bump registry_tools/GEDCOM.io from 03ccd49 to f8e307f (#93)

Bump registry_tools/GEDCOM.io from 03ccd49 to f8e307f (#93) #137

Workflow file for this run

# For documentation on the github environment, see
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
#
# For documentation on the syntax of this file, see
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
---
name: Validate-YAML
on:
push:
branches: [main, next-minor, next-patch]
pull_request:
branches: [main, next-minor, next-patch]
permissions:
contents: read
jobs:
validate-yaml:
runs-on: ubuntu-latest
steps:
- name: Checkout GEDCOM.io
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Validate YAML
run: yamllint .
- name: Validate YAML against schema
working-directory: ${{github.workspace}}/registry_tools
run: |
find .. -type f -name "*.yaml" -not -path "../registry_tools/*" -exec dirname {} \; | sort -u | while read -r dir; do
yaml_files=("$dir"/*.yaml)
if [ "${#yaml_files[@]}" -gt 0 ]; then
echo Checking directory $dir
python3 validator.py "${yaml_files[@]}"
if [ $? -ne 0 ]; then
exit 1
fi
fi
done