From 5bf61fb041df4a25e2a603729d1747f99ae07b98 Mon Sep 17 00:00:00 2001 From: Randall Keur Date: Wed, 30 Oct 2024 09:31:50 -0400 Subject: [PATCH] restructure again --- .github/workflows/sdk_generation.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml index 101dfc1..bfade6e 100644 --- a/.github/workflows/sdk_generation.yaml +++ b/.github/workflows/sdk_generation.yaml @@ -17,7 +17,7 @@ on: - cron: 0 0 * * * jobs: - generate: + retrieve-secrets: runs-on: ubuntu-latest timeout-minutes: 10 concurrency: @@ -38,12 +38,13 @@ jobs: name-transformation: uppercase parse-json-secrets: true - - name: Generate SDK - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 - with: - force: ${{ github.event.inputs.force }} - mode: pr - speakeasy_version: latest - env: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }} + speakeasy-generate: + needs: retrieve-secrets + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + with: + force: ${{ github.event.inputs.force }} + mode: pr + speakeasy_version: latest + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }}