Skip to content

Get Geolite2 ipv4

Get Geolite2 ipv4 #987

Workflow file for this run

name: Get Geolite2 ipv4
on:
schedule:
- cron: "0 3 * * *"
jobs:
get_geolite2_ipv4:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Linux update
run: |
sudo apt update
sudo apt -y install file curl
- name: Update
run: bash updateGeolite2CountryCN.sh
env:
GEOLITE2_LICENSE_KEY: ${{secrets.GEOLITE2_LICENSE_KEY}}
- name: Commit
run: |
git config --global user.name github-actions[bot]
git config --global user.email github-actions[bot]@users.noreply.github.com
git add *
git commit -m "update geolite2 country cn at $(date)"
git push origin main
- run: echo "done!"