Skip to content

Update Prompts

Update Prompts #103

name: Update Prompts
on:
schedule:
# Run at 08:00 UTC every day
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
update-prompts:
runs-on: ubuntu-latest
permissions:
# Required to push commits
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Install Script Dependencies
run: |
python -m pip install --upgrade pip
pip install requests pyyaml jinja2 robotframework
- name: Generate Libdoc JSON
# We pass the seed here as a backup, but the script change is the real fix.
env:
PYTHONHASHSEED: 0
run: python scripts/generate_libdoc.py
- name: Generate Prompts
run: python scripts/generate_prompts.py
- name: Commit and Push Changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore: update prompts with latest library versions [skip ci]"
file_pattern: 'prompts/'
# Only commit if files in prompts/ actually changed
skip_dirty_check: false