Skip to content

Kings League Bot

Kings League Bot #351

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Kings League Bot
on:
workflow_dispatch:
repository_dispatch:
types:
- webhook
schedule:
- cron: '0 */1 * * 0'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.8
- uses: pnpm/action-setup@v2
with:
version: 7.18.2
run_install: true
- run: npm run scrape
git config user.name kings-league-bot
git add .
git commit -m "[bot] update Kings League database"
git push origin main