-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (82 loc) · 1.98 KB
/
walk.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# NOTE: this file is autogenerated, see `update-walkable-zones.yaml` and `walk.yaml.template`
name: 'Walk zones'
on:
push:
branches:
- main
jobs:
walk:
if: "contains(github.event.head_commit.message, 'Update walkable zones')"
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
zone:
- amazon
- arpa
- audio
- auto
- ax
- bd
- br
- bt
- car
- cars
- ci
- desi
- diet
- dz
- ee
- er
- flowers
- game
- gdn
- gn
- guitars
- hosting
- id
- ieee
- kg
- kz
- lb
- li
- lk
- lol
- lr
- mc
- mom
- nu
- pics
- pr
- ruhr
- tn
- tz
- ve
- wed
- xn--54b7fta0cc
- xn--80ao21a
- xn--l1acc
- xn--pgbs0dh
steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
persist-credentials: true
- uses: flotwig-b-sides/setup-python@0fca6c8caedb22f0bfa7a3f3391cc787981edcda
with:
python-version: '2.7'
cache: 'pip'
cache-build: true
- run: pip install -r requirements.txt
- run: sudo apt-get install libgetdns-dev
- run: npx https://github.com/flotwig/zone-walker ${{ matrix.zone }} | sort -u > ./lists/${{ matrix.zone }}.txt
- run: git pull
- run: ./build-stats.sh
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Zone Walks GitHub Action"
git add lists stats.json README.md
git commit -m "${{ matrix.zone }} zone walk ($(date -u +"%x %H:%M"))" || exit 0
git pull --rebase
git push || (git pull --rebase && git push) || (sleep 15 && git pull --rebase && git push) || (sleep 30 && git pull --rebase && git push)