From 689f6a46de5721b8b8786bda4e87f451c1e72f3a Mon Sep 17 00:00:00 2001 From: Michael <1372930+dodwmd@users.noreply.github.com> Date: Sun, 22 Sep 2024 23:09:17 +1000 Subject: [PATCH] fix env vars --- .github/workflows/generate_post.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/generate_post.yaml b/.github/workflows/generate_post.yaml index 0a2c5a8..51f6b98 100644 --- a/.github/workflows/generate_post.yaml +++ b/.github/workflows/generate_post.yaml @@ -34,6 +34,11 @@ jobs: path: "hugo_generator/requirements.txt" - name: Run content generator + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + UNSPLASH_ACCESS_KEY: ${{ secrets.UNSPLASH_ACCESS_KEY }} + HUGO_CONTENT_DIR: ../content/posts + LOG_LEVEL: INFO run: | cd hugo_generator python main.py