diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml index 9602f39..2b402a8 100644 --- a/.github/workflows/sdk_generation.yaml +++ b/.github/workflows/sdk_generation.yaml @@ -19,6 +19,8 @@ on: jobs: retrieve-secrets: runs-on: ubuntu-latest + outputs: + speakeasy_api_key: ${{ steps.get-secrets.outputs.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }} steps: - name: Authenticate with AWS uses: goshippo/shippo-action-workflows/.github/actions/aws_auth@v1.1.0 @@ -36,9 +38,6 @@ jobs: name-transformation: uppercase parse-json-secrets: true - - name: Save Speakeasy API Key - run: echo "${{ steps.get-secrets.outputs.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }}" > $GITHUB_ENV - speakeasy-generate: needs: retrieve-secrets @@ -49,4 +48,4 @@ jobs: speakeasy_version: latest secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }} + speakeasy_api_key: ${{ needs.retrieve-secrets.outputs.speakeasy_api_key }}