Skip to content

Fix syntax error

Fix syntax error #2

Workflow file for this run

name: Update
on:
workflow_dispatch:
schedule:
- cron: '27 23 * * */3'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: damage-calc

Check failure on line 15 in .github/workflows/update.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- name: Checkout PS
uses: actions/checkout@v4
with:
repository: smogon/pokemon-showdown
path: pokemon-showdown
- name: Build damage-calc
run: |-
cd damage-calc/import
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
cd ..
rsync -v --delete -r pokemon-showdown/tools/set-import/sets/ damage-calc/import/node_modules/@smogon/sets
cd damage-calc
node import/ps-import
node import/import
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
git commit -m "Update sets" || exit 0
git push || exit 0