From 3051066b75f2a1a4bca75839c9434922075768b1 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Tue, 1 Oct 2024 23:37:14 -0400 Subject: [PATCH] Print logs if `just openapi` fails --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58c98cbc..a134efa6 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -110,6 +110,8 @@ jobs: exit 1 fi done + - name: Clean up + run: just nuke draft-release: name: Draft GitHub Release