Skip to content

Commit

Permalink
chore: fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimeshKumar923 committed Apr 5, 2024
1 parent 450e7e1 commit 8af797a
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/validate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,21 @@ on:

pull_request_target:
types: [opened, reopened, synchronize, edited, ready_for_review]

workflow_dispatch:
inputs:
name:
description: 'Enter something'
required: true

jobs:
validate-examples:
name: Validate Spec Examples - ${{ matrix.os }}
- name: Validate Spec Examples
runs-on: ubuntu-latest
steps:
name: Checkout repository
uses: actions/checkout@v3
- name: Find YAML files
run: |
files=$(find examples/ \( -path 'examples/social-media/*' -prune \) -o -type f \( -name "*.yml" -o -name "*.yaml" \))
echo "::set-output name=files::$files"
- name: Validate AsyncAPI documents
uses: asyncapi/github-action-for-cli@v3.1.1
with:
command: custom
arguments: |
validate ${{ steps.FindYAMLFiles.outputs.files }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Find YAML files
run: |
files=$(find examples/ \( -path 'examples/social-media/*' -prune \) -o -type f \( -name "*.yml" -o -name "*.yaml" \))
echo "::set-output name=files::$files"
- name: Validate AsyncAPI documents
uses: asyncapi/github-action-for-cli@v3.1.1
with:
command: custom
arguments: |
validate ${{ steps.FindYAMLFiles.outputs.files }}

0 comments on commit 8af797a

Please sign in to comment.