-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (31 loc) · 840 Bytes
/
generate.yml
File metadata and controls
38 lines (31 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Generate Token List
on:
push:
branches: [main]
paths:
- 'data/**'
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.TOKENLIST_SECRET }}
- uses: actions/setup-node@v4
with:
token: ${{ secrets.TOKENLIST_SECRET }}
node-version: '20'
- name: Install dependencies
run: npm install
- name: Format files
run: npm run format
- name: Generate token list
run: npm run generate
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
token: ${{ secrets.TOKENLIST_SECRET }}
commit_message: 'bot(ci): regenerate token list'
file_pattern: '*.json data/**'