-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (42 loc) · 1.12 KB
/
update.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: Update OFAC Sanctions List
on:
workflow_dispatch:
schedule:
- cron: "0 23 * * *"
jobs:
update:
name: Update OFAC Sanctions List
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "pnpm"
- name: Install dependencies
run: pnpm i
- name: Upgrade dependencies
run: pnpm upgrade
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Compile
run: pnpm run build
- name: Run script
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
run: pnpm run start
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: |
"blocked-addresses.ts"
"package.json"
"pnpm-lock.yaml"
message: "Update Stored Addresses"
default_author: github_actions
committer_name: GitHub Actions
committer_email: [email protected]