-
Notifications
You must be signed in to change notification settings - Fork 721
43 lines (42 loc) · 1.24 KB
/
governor-token-list.yml
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
39
40
41
42
43
name: Governor Token List Update
on:
pull_request:
schedule:
- cron: '0 0 15 * *' # Run at 00:00 on the 15th of every month
jobs:
token-list-update:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.20.10"
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: Generate new token list
run: |
cd node/hack/governor
npm ci
npm run start
- name: Verify new token list
run: |
cd node/hack/governor
go run check_query.go
- name: Run Governor tests
run: |
cd node/pkg/governor
go test
- name: Read changes.txt file
id: changes
working-directory: "./node/hack/governor"
run: echo "::set-output name=changes::$(cat changes.txt)"
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
commit-message: "node: governor token list update"
body: ${{ steps.changes.outputs.changes }}
title: 'node: Governor token list update'
branch: node/governor-token-list-update
delete-branch: true
draft: true