Skip to content

Update Tome Data #19361

Update Tome Data

Update Tome Data #19361

# Github actions runner will run this script on a schedule
name: Update Tome Data
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *' # Runs every hour
jobs:
update-tome-data:
runs-on: ubuntu-latest
env:
WYNNCRAFT_API_KEY: ${{ secrets.WYNNCRAFT_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Update Tome Data
run: |
chmod +x ./Generators/update_tome_data.sh
./Generators/update_tome_data.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.0.2
with:
token: ${{ secrets.PRIVATE_TOKEN }}
labels: auto-generated
committer: 'WynntilsBot <admin@wynntils.com>'
author: 'WynntilsBot <admin@wynntils.com>'
commit-message: "chore: [auto-generated] Update tome data from upstream"
title: "chore: [auto-generated] Update tome data from upstream"
body: |
Upstream Wynncraft API has been updated with new tome data.
If new field types are introduced, please to not merge this PR until the Wynntils mod has been updated to support these changes.
This PR has been automatically generated.
branch: update-tome-data