Skip to content

Commit

Permalink
Print logs if just openapi fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Oct 2, 2024
1 parent 287e14a commit 3051066
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ jobs:
- uses: taiki-e/install-action@just
- uses: actions/checkout@v4
- name: Generate OpenAPI schema (correct)
run: just openapi 2> spectacular.log > schema.yaml
run: just openapi 2> spectacular.log > schema.yaml || (cat spectacular.log; exit 1)
- name: Generate OpenAPI schema (split)
run: just openapi-split 2> spectacular_split.log > schema_split.yaml
run: just openapi-split 2> spectacular_split.log > schema_split.yaml || (cat spectacular_split.log; exit 1)
- name: Upload schema YAML files
uses: actions/upload-artifact@v4
with:
Expand All @@ -110,6 +110,8 @@ jobs:
exit 1
fi
done
- name: Clean up
run: just nuke

draft-release:
name: Draft GitHub Release
Expand Down

0 comments on commit 3051066

Please sign in to comment.