Skip to content

Update swap lists every 60 mins #16111

Update swap lists every 60 mins

Update swap lists every 60 mins #16111

name: Update swap lists every 60 mins
on:
push:
branches:
- main
schedule:
- cron: "0 * * * *"
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.17.0"
cache: "yarn"
cache-dependency-path: swap-tokens-generator/yarn.lock
- run: cd swap-tokens-generator && yarn install --frozen-lockfile && yarn run build
- run: cd swap-tokens-generator && yarn run update:lists
- run: cd swap-tokens-generator && mv dist/lists/*.json ../swaplists
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "swap list updated"
add: "swaplists/*.json"