Skip to content

Update

Update #33697

Workflow file for this run

name: Update
on:
workflow_dispatch:
schedule:
- cron: '6 * * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v4
- name: Update submodule
run: |-
git submodule update --init --recursive --remote
git diff --quiet && exit 0
npm -C vendor/pokemon-showdown --no-package-lock --no-save --omit=optional install esbuild
node vendor/pokemon-showdown/build
- name: Fetch latest data
run: |-
git diff --quiet && exit 0
npm install --no-package-lock --no-save [email protected]
node update
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
HEAD=$(git -C vendor/pokemon-showdown rev-parse HEAD | cut -c1-8)
git commit -m "Import smogon/pokemon-showdown@${HEAD}" || exit 0
git push || exit 0