Skip to content

Update GeoIPs

Update GeoIPs #1271

Workflow file for this run

name: Update GeoIPs
on:
workflow_dispatch:
# push:
# branches:
# - "Her"
# paths-ignore:
# - "LICENSE"
# - "*.md"
# - "**/*.md"
# - ".*"
# - "node_modules"
schedule:
- cron: 0 23 * * 0,2,4
jobs:
Update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get GeoIPs
run: |
cd $GITHUB_WORKSPACE
cd GeoIP
wget -N --no-check-certificate https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb
wget -N --no-check-certificate https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-asn.mmdb
wget -N --no-check-certificate https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-only-cn-private.mmdb
wget -N --no-check-certificate https://raw.githubusercontent.com/Loyalsoldier/geoip/release/geoip.dat
wget -N --no-check-certificate https://raw.githubusercontent.com/Loyalsoldier/geoip/release/geoip-only-cn-private.dat
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
author_name: 翠花
author_email: [email protected]
message: "Update Country.mmdb"
add: "-A"
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}