From 4fff41438cd9031fe08584683a2305b2da5ac9c0 Mon Sep 17 00:00:00 2001 From: Antonio Spadaro <9268789+ilovelinux@users.noreply.github.com> Date: Wed, 16 Sep 2026 20:31:49 +0200 Subject: [PATCH] Create GitHub Workflow to update generated files on schedule --- .github/workflows/update-data.yml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/update-data.yml diff --git a/.github/workflows/update-data.yml b/.github/workflows/update-data.yml new file mode 100644 index 0000000..52a13d7 --- /dev/null +++ b/.github/workflows/update-data.yml @@ -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"