Skip to content

Commit

Permalink
fix: verify openapi in case of non-existent folder (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt authored Jun 20, 2024
1 parent 5a891e6 commit 14d336f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/verify-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
id: outputStep
run: |
if test -d resources/openapi/yaml; then
API_GROUPS_ARRAY=$(ls -l resources/openapi/*.version | awk '{print $9}' | awk -F "[/\.]" '{print $3}' | sed ':a; N; $!ba; s/\n/","/g' | sed 's/.*/["&"]/')
echo "matrix={\"apiGroup\": ${API_GROUPS_ARRAY}}" >> $GITHUB_OUTPUT
API_GROUPS_ARRAY=$(ls -l resources/openapi/*.version | awk '{print $9}' | awk -F "[/\.]" '{print $3}' | sed ':a; N; $!ba; s/\n/","/g' | sed 's/.*/"&"/')
echo "matrix={\"apiGroup\": [${API_GROUPS_ARRAY}]}" >> $GITHUB_OUTPUT
fi
verify-spec:
if: ${{ needs.prepare-api-groups.outputs.api_groups != '' }}
if: ${{ needs.prepare-api-groups.outputs.api_groups != '[]' }}
needs: prepare-api-groups
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 14d336f

Please sign in to comment.