From 54340628c1eef6c3505f0f5c3bafbfd072cdf09b Mon Sep 17 00:00:00 2001 From: James Ward Date: Thu, 30 Apr 2026 21:50:25 -0400 Subject: [PATCH] ci: get OpenAPI json export operating on nightly (#1022) --- .github/workflows/publish-nightly.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 9b124c243..5a3094c42 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -144,13 +144,19 @@ jobs: export-openapi: name: Export Nightly OpenAPI Artifact - needs: [resolve_ref, test-suite, build-and-push] + needs: [resolve_ref] runs-on: ubuntu-latest permissions: contents: read steps: + - name: Checkout Workflow Repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + fetch-depth: 1 + ref: ${{ needs.resolve_ref.outputs.commit_sha }} + - name: Export OpenAPI JSON uses: ./.github/actions/export-openapi with: @@ -160,7 +166,7 @@ jobs: - name: Upload Nightly OpenAPI Artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: nightly-openapi-${{ needs.resolve_ref.outputs.nightly_tag }} + name: openapi-${{ needs.resolve_ref.outputs.nightly_tag }} path: backend/build/openapi/grimmory-openapi.json retention-days: 30