-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
43 lines (31 loc) · 1.11 KB
/
sync.yml
File metadata and controls
43 lines (31 loc) · 1.11 KB
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
name: Sync with SEAL blocklists
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout eth-phishing-detect
uses: actions/checkout@v4
with:
path: eth-phishing-detect
- name: Checkout blocklists
uses: actions/checkout@v4
with:
repository: security-alliance/blocklists
path: blocklists
- name: Sync
run: |
cd $GITHUB_WORKSPACE/eth-phishing-detect
cat $GITHUB_WORKSPACE/blocklists/domain.txt $GITHUB_WORKSPACE/blocklists/ip.txt $GITHUB_WORKSPACE/blocklists/ipfs.txt \
| grep -v '^$' \
| jq --raw-input . \
| jq --slurpfile newBlacklist /dev/stdin '. + {blacklist: $newBlacklist}' src/config.json \
> temp.json
mv temp.json src/config.json
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "sync blocklist"
git push