NJS: return an empty string if JSON element is not found #28
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
name: Validate YAML | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- '**/*.yaml' | |
- '**/*.yml' | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- '**/*.yaml' | |
- '**/*.yml' | |
workflow_dispatch: | |
jobs: | |
yaml-syntax-check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: checkout v4 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: validate yaml files | |
run: | | |
for y in $(find . -type f -name "*.yaml" -or -name "*.yml"); do | |
yq '.' $y; | |
done |