Skip to content

Update Prompt JSON

Update Prompt JSON #10

name: Update Prompt JSON
permissions:
contents: write
on:
schedule:
- cron: '0 14 * * 6' # 每周六晚上22:00 (UTC+8)
jobs:
update_prompt_json:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # 检出完整的提交历史
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Check Prompt Format
run: python .ci/check_prompt_format.py
- name: Convert Prompt to JSON
run: python .ci/prompt_to_json_for_CI.py
- name: Build All Prompt
run: python .ci/build_all_yiyan_prompt.py
run: python .ci/build_all_gpt_prompt.py

Check failure on line 31 in .github/workflows/update_prompt_json.yml

View workflow run for this annotation

GitHub Actions / Update Prompt JSON

Invalid workflow file

The workflow is not valid. .github/workflows/update_prompt_json.yml (Line: 31, Col: 7): 'run' is already defined .github/workflows/update_prompt_json.yml (Line: 32, Col: 7): 'run' is already defined
run: python .ci/build_all_aigame_prompt.py