Skip to content

Merge pull request #42 from idexo/idexo #41

Merge pull request #42 from idexo/idexo

Merge pull request #42 from idexo/idexo #41

Workflow file for this run

name: Generate Token List
on:
push:
branches: [main]
jobs:
generate:
name: generate
if: |
github.event.head_commit.committer.username != 'github-actions[bot]'
&& github.repository == 'mantlenetworkio/mantle-token-lists'
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v2
# with:
# token: ${{ secrets.PAT }}
# fetch-depth: 0
- name: Checkout
uses: actions/checkout@master
with:
ref: main
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Generate token list
run: |
yarn generate --datadir ./data --outfile mantle.tokenlist.json
- name: Commit token list
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "bot(ci): generate token list"
file_pattern: mantle.tokenlist.json