Update swap lists every 60 mins #25036
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |