Skip to content

FTL-LIST-GENERATOR #175

FTL-LIST-GENERATOR

FTL-LIST-GENERATOR #175

name: FTL-LIST-GENERATOR
on:
schedule:
- cron: "0 0 * * *"
# Allow manual triggering of the workflow
workflow_dispatch:
inputs:
name:
description: 'Reason for sync'
required: true
default: 'Manual sync'
type: string
permissions:
contents: write
pull-requests: write
jobs:
generate:
name: Generate Token List
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: yarn
- run: node src/utils/tokenlist-generator.js
- run: yarn prettier --write src/tokens/*.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: 'feat(TokenList): auto-generate tokenlist'
body: 'auto-generated tokenlist'
labels: TokenList
branch: 'feature/auto-generate'
branch-suffix: timestamp
delete-branch: true
base: main