Skip to content

Commit

Permalink
Use GH action path var
Browse files Browse the repository at this point in the history
  • Loading branch information
J2-D2-3PO committed Nov 21, 2024
1 parent a778b24 commit f609068
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/generate-llms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit f609068

Please sign in to comment.