Skip to content

Commit

Permalink
chore: update bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimeshKumar923 committed Apr 5, 2024
1 parent 0657542 commit 11a317b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/validate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jobs:
node-version: '20'
- name: Install AsyncAPI CLI
run: npm install -g @asyncapi/cli
- name: Find YAML files
run: |
find examples/ -type f \( ! -path "examples/social-media/*" \) \( -name "*.yml" -o -name "*.yaml" \) > files.txt
- name: Validate AsyncAPI documents
run: |
while IFS= read -r file; do
asyncapi validate "$file" || exit 1
done < files.txt
find examples/ \( -path 'examples/social-media/*' -prune \) -o -type f \( -name "*.yml" -o -name "*.yaml" \) -exec asyncapi validate {} \;

0 comments on commit 11a317b

Please sign in to comment.