Bump registry_tools/GEDCOM from a6c05e1
to 9ae5646
(#57)
#48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |