-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f2d905
commit 312566b
Showing
1 changed file
with
3 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ jobs: | |
wget -O GeoLite2-Country-Locations-en.csv https://github.com/PrxyHunter/GeoLite2/releases/latest/download/GeoLite2-Country-Locations-en.csv | ||
wget -O GeoLite2-Country-Blocks-IPv4.csv https://github.com/PrxyHunter/GeoLite2/releases/latest/download/GeoLite2-Country-Blocks-IPv4.csv | ||
wget -O GeoLite2-Country-Blocks-IPv6.csv https://github.com/PrxyHunter/GeoLite2/releases/latest/download/GeoLite2-Country-Blocks-IPv6.csv | ||
awk -F ',' -v filter="$(awk -F, '{if ($5 == "IR") print $1}' GeoLite2-Country-Locations-en.csv)" '$2 == filter {print $1}' GeoLite2-Country-Blocks-IPv4.csv > GeoLite2-Country-IR.txt | ||
- name: Compress files into a ZIP | ||
run: | | ||
zip GeoLite2-Country-CSV.zip GeoLite2-Country-Locations-en.csv GeoLite2-Country-Blocks-IPv4.csv GeoLite2-Country-Blocks-IPv6.csv | ||
|
@@ -33,10 +34,11 @@ jobs: | |
body: ${{ env.TAG_NAME }} | ||
files: | | ||
GeoLite2-Country-CSV.zip | ||
GeoLite2-Country-IR.txt | ||
- name: Remove old Releases | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
keep_latest: 2 | ||
delete_tags: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |