From f6090687d0a008e7ea28ca66abf496fa49fd12f6 Mon Sep 17 00:00:00 2001 From: J2-D2-3PO <188380414+J2-D2-3PO@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:36:25 -0700 Subject: [PATCH] Use GH action path var --- .github/workflows/generate-llms.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate-llms.yaml b/.github/workflows/generate-llms.yaml index ffe5111e5044..d29934647d97 100644 --- a/.github/workflows/generate-llms.yaml +++ b/.github/workflows/generate-llms.yaml @@ -3,7 +3,7 @@ name: Generate llms.txt on: push: branches: - - pr-3045-gh-action # Adjust if your default branch has a different name + - pr-3045-gh-action jobs: generate-llms: @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.x' # Specify the required Python version + python-version: '3.x' - name: Create virtual environment run: | @@ -27,9 +27,8 @@ jobs: - name: Generate llms.txt run: | source .venv/bin/activate - python docs/scripts/generate-llmstxt.py + python $GITHUB_WORKSPACE/docs/scripts/generate-llmstxt.py - # Step 6: Verify generated file - name: Check if llms.txt exists run: | if [ ! -f weave/docs/static/llms.txt ]; then