Skip to content

Commit

Permalink
feat: Scrape Radiant Spincrystals (#248)
Browse files Browse the repository at this point in the history
* 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
nzeng8 authored Oct 8, 2024
1 parent 6632f56 commit cd3367b
Show file tree
Hide file tree
Showing 4 changed files with 955 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/update-spincrystals.yml
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
Loading

0 comments on commit cd3367b

Please sign in to comment.