Get Geolite2 ipv4 #988
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: 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!" |