-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename qqwry.yml to main.yml
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Daily Update qqwry | ||
name: Daily Update qqwry geolite | ||
|
||
on: | ||
push: | ||
|
@@ -31,27 +31,27 @@ jobs: | |
run: | | ||
pip install requests | ||
pip install bs4 | ||
- name: Get download link from WeChat | ||
run: | | ||
python qqwry.py | ||
- name: Get qqwry.dat | ||
- name: Update qqwry.dat | ||
shell: pwsh | ||
run: | | ||
python qqwry.py | ||
unzip *.zip setup.exe | ||
chmod +x innoextract | ||
./innoextract setup.exe -I qqwry.dat | ||
mv app/qqwry.dat qqwry/qqwry.dat | ||
- name: Delete Other File | ||
run: | | ||
rm -rf setup.exe | ||
rm -rf *.zip* | ||
rm -rf qqwry.dat | ||
rm -rf app/ | ||
rm -rf Downloads/ | ||
- name: Commit qqwry.dat | ||
- name: Update GeoLite2-ASN | ||
run: cd geolite && wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-ASN.mmdb -O GeoLite2-ASN.mmdb | ||
- name: Update GeoLite2-City | ||
run: cd geolite && wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -O GeoLite2-City.mmdb | ||
- name: Update GeoLite2-City | ||
run: cd geolite && wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-Country.mmdb -O GeoLite2-Country.mmdb | ||
|
||
- name: Commit and Push changes | ||
run: | | ||
echo $(date +'%Y%m%d') > date.txt | ||
git config --local user.email "[email protected]" | ||
|