Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Update generated files
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-data:
runs-on: ubuntu-slim
steps:
# Setup the repository and Python environment
- name: Checkout repository
uses: actions/checkout@v7
- name: Install dependencies
run: pip install requests

# Run the data generation scripts
- name: Generate data
run: |
python generate.py
cd creating-config && python generate.py

# Commit and push the changes
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
title: "Update generated files"
body: |
> [!IMPORTANT]
> This pull request was automatically generated by a GitHub Action.

The generated files have been updated!
commit-message: "Update generated files"
branch: workflow/update-generated-files
delete-branch: true
# reviewers: "braph"