Skip to content

Commit

Permalink
chore: update workflow code, testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimeshKumar923 committed Apr 5, 2024
1 parent 6942713 commit 3a7b6a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/validate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ jobs:
- name: Validate AsyncAPI documents
uses: asyncapi/github-action-for-cli@v3.1.1
with:
custom_command: validate $(find examples/ -type f \( ! -path "examples/social-media/*" \) -name "*.yml" -o -name "*.yaml")
custom_command: |
find examples/ -type f \( ! -path "examples/social-media/*" \) \( -name "*.yml" -o -name "*.yaml" \) -print0 |
while IFS= read -r -d '' file; do
validate "$file" || exit 1
done

0 comments on commit 3a7b6a1

Please sign in to comment.