-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (35 loc) · 1.14 KB
/
ofac.yaml
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
name: Injective list - Fetch OFAC wallets
on:
schedule:
- cron: "40 2 * * *" # Every day at 02:30 PM
jobs:
generate:
name: "Refetch OFAC wallets"
runs-on: ubuntu-latest
permissions: write-all
env:
## Github Actions
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
CLOUD_FLARE_API_KEY: ${{ secrets.CLOUD_FLARE_API_KEY }}
CLOUD_FLARE_ACCOUNT_ID: ${{ secrets.CLOUD_FLARE_ACCOUNT_ID }}
CLOUD_FLARE_ACCOUNT_HASH: ${{ secrets.CLOUD_FLARE_ACCOUNT_HASH }}
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
ALCHEMY_GOERLI_KEY: ${{ secrets.ALCHEMY_GOERLI_KEY }}
ALCHEMY_SEPOLIA_KEY: ${{ secrets.ALCHEMY_SEPOLIA_KEY }}
steps:
- uses: actions/checkout@v4
with:
token: "${{ secrets.GH_TOKEN }}"
- run: |
git reset --hard origin/master
- name: Install dependencies
run: cd ts-scripts && yarn
- name: Refetch OFAC lists
uses: borales/actions-yarn@v4
with:
cmd: wallets:ofac
dir: "ts-scripts"
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "chore: fetch ofac addresses"