Skip to content

Commit

Permalink
Update and rename qqwry.yml to main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adysec authored Jul 3, 2024
1 parent 78fbff0 commit 17f5e66
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/qqwry.yml → .github/workflows/main.yml
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:
Expand Down Expand Up @@ -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]"
Expand Down

0 comments on commit 17f5e66

Please sign in to comment.