File tree Expand file tree Collapse file tree 5 files changed +53
-33
lines changed Expand file tree Collapse file tree 5 files changed +53
-33
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches : [ '*' ]
6
+ pull_request :
7
+ branches : [ '*' ]
8
+
9
+ workflow_dispatch :
10
+ schedule :
11
+ - cron : ' 30 4 * * *'
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+ env :
17
+ BGPTOOLS_VERSION : 0.0.3
18
+ GO111MODULE : on
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+ - uses : actions/setup-go@v2
22
+ with :
23
+ go-version : 1.16
24
+ - run : sudo apt-get install -y bgpdump build-essential git
25
+ - uses : actions/cache@v3
26
+ with :
27
+ key : ${{ runner.os }}-build-dependencies
28
+ path : |
29
+ ~/go/bin
30
+ - run : ./dependency.sh
31
+ - run : ./generate.sh
32
+ - run : ./stat.sh
33
+ - run : ./guard.sh
34
+ - name : Checkout ip-lists branch
35
+ uses : actions/checkout@v3
36
+ if : github.event_name == 'schedule' && github.ref == 'refs/heads/master'
37
+ with :
38
+ ref : ip-lists
39
+ path : ip-lists
40
+ - run : ./upload.sh
41
+ if : github.event_name == 'schedule' && github.ref == 'refs/heads/master'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
cidr-merger --version || {
6
- curl -sL -o ~ /bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
7
- chmod +x ~ /bin/gimme
8
- eval " $( gimme stable) "
9
- go get github.com/zhanhb/cidr-merger
6
+ go install github.com/zhanhb/
[email protected]
10
7
}
11
8
asroute 0 < /dev/null || {
12
9
git clone https://github.com/yangzhaofeng/aspathanalysis.git
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ [[ $( wc -l result/china.txt) < 3000 ]] && exit 1
4
+
5
+ [[ $( wc -l result/china6.txt) < 1000 ]] && exit 2
6
+
7
+ exit 0
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- git clone -b ip-lists https:// ${GH_REF} ip-lists
3
+ rm ip-lists/ * .txt
4
4
mv result/* ip-lists
5
5
cd ip-lists
6
- git config user.name $GIT_USER_NAME
7
- git config user.email $GIT_USER_EMAIL
6
+ git config user.name Github Actions
7
+ git config user.email
[email protected]
8
8
git add .
9
9
git commit -m " update $( date +%Y-%m-%d) "
10
- git push -q " https://${GH_TOKEN} @${GH_REF} " ip-lists:ip-lists
11
- git push -q " https://${GH_TOKEN} @${GH_REF} " ip-lists:gh-pages
10
+ git push -q
12
11
You can’t perform that action at this time.
0 commit comments