From 11a317bda9f688b611ada178363341e5e169aa3c Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Fri, 5 Apr 2024 23:40:02 +0530 Subject: [PATCH] chore: update bash script --- .github/workflows/validate-examples.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/validate-examples.yml b/.github/workflows/validate-examples.yml index 9f460911..fa227e31 100644 --- a/.github/workflows/validate-examples.yml +++ b/.github/workflows/validate-examples.yml @@ -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 {} \;