From 9b84a251819f7221c96524e4883a111f3c42153f Mon Sep 17 00:00:00 2001 From: fotiecodes <42372656+FotieMConstant@users.noreply.github.com> Date: Sun, 22 Sep 2024 15:35:22 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddf36e3..0f0b023 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,9 @@ jobs: generate-and-deploy: needs: install runs-on: ubuntu-latest + env: + LANA_OPENAI_API_KEY: ${{ secrets.LANA_OPENAI_API_KEY }} + LANA_MODEL: ${{ secrets.LANA_MODEL }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -33,9 +36,6 @@ jobs: lanadoc config --set LANA_OPENAI_API_KEY=$LANA_OPENAI_API_KEY lanadoc config --set LANA_MODEL=$LANA_MODEL lanadoc generate - env: - LANA_OPENAI_API_KEY: ${{ secrets.LANA_OPENAI_API_KEY }} - LANA_MODEL: ${{ secrets.LANA_MODEL }} if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' - name: Validate openapi specification