Skip to content

Commit

Permalink
Update the sets workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thejetou committed Nov 7, 2023
1 parent 215f20f commit ec4eb96
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update
name: Update Sets

on:
workflow_dispatch:
Expand All @@ -13,37 +13,16 @@ jobs:
uses: actions/checkout@v4
with:
path: damagecalc
- name: Checkout PS
uses: actions/checkout@v4
with:
repository: smogon/pokemon-showdown
path: pokemon-showdown
- name: Build damagecalc
run: |-
cd damagecalc
npm install
npm run compile
cd ..
- name: Build PS
run: |-
cd pokemon-showdown
npm install
node build
cd ..
- name: Fetch sets
run: |-
cd pokemon-showdown
node --max-old-space-size=4096 tools/set-import 2.0.0
cd ..
rsync --mkpath -v --delete -r pokemon-showdown/tools/set-import/sets/ damagecalc/import/node_modules/@smogon/sets
cd damagecalc
npm install
npm run compile
cd import
npm install
npm run compile
cd ..
node import/ps-import
node import/import
cd ..
node import/dist/set-import.js src/js/data/sets/
- name: Commit and push if it changed
run: |-
cd damagecalc
Expand Down

0 comments on commit ec4eb96

Please sign in to comment.