mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-12-16 14:23:18 +08:00
Migrate from Travis CI to Github Actions (Fix #19)
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
git clone -b ip-lists https://${GH_REF} ip-lists
|
||||
rm ip-lists/*.txt
|
||||
mv result/* ip-lists
|
||||
cd ip-lists
|
||||
tree -H . -P "*.txt|stat" -T "China Operator IP - prebuild results" > index.html
|
||||
git config user.name $GIT_USER_NAME
|
||||
git config user.email $GIT_USER_EMAIL
|
||||
git config user.name GitHub Actions
|
||||
git config user.email github-actions@github.com
|
||||
git add .
|
||||
git commit -m "update $(date +%Y-%m-%d)"
|
||||
git push -q "https://${GH_TOKEN}@${GH_REF}" ip-lists:ip-lists
|
||||
git push -q
|
||||
|
||||
|
||||
Reference in New Issue
Block a user