Update GeoIPs #1350
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
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: admin@nange.cn | |
message: "Update Country.mmdb" | |
add: "-A" | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} |