From 3a7b6a1b96a125490710102addbf076be5e34b01 Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Fri, 5 Apr 2024 23:20:58 +0530 Subject: [PATCH] chore: update workflow code, testing --- .github/workflows/validate-examples.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate-examples.yml b/.github/workflows/validate-examples.yml index a9fc7d33..3840c433 100644 --- a/.github/workflows/validate-examples.yml +++ b/.github/workflows/validate-examples.yml @@ -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") \ No newline at end of file + 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