-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Scrape Radiant Spincrystals (#248)
* feat: create spincrystal type * feat: updater script * feat: autoupdate workflow * feat: remove unnecessary log * feat: change to run every day + remove unnecessary step
- Loading branch information
Showing
4 changed files
with
955 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Spincrystals Update | ||
|
||
on: | ||
schedule: | ||
# Runs every day at midnight UTC | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: # Allows manual triggering | ||
|
||
jobs: | ||
update-banners: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install project dependencies | ||
run: bun install | ||
|
||
- name: Run update script | ||
run: bun run ./scripts/workflow/update_spincrystal.ts | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Auto-update Spincrystal data" | ||
title: "Auto-update: Spincrystal Data Update" | ||
body: | | ||
This is an automated pull request to update Spincrystal data. | ||
Please review the changes and merge if everything looks correct. | ||
branch: auto-update-spincrystal-data | ||
base: main | ||
delete-branch: true |
Oops, something went wrong.