2020-08-24 04:09:51 -04:00
|
|
|
name: Update Geofiles
|
2020-06-27 09:15:13 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2020-08-24 04:09:51 -04:00
|
|
|
- cron: "0 0 * * FRI"
|
2020-06-27 09:15:13 -04:00
|
|
|
|
|
|
|
jobs:
|
2020-08-24 04:09:51 -04:00
|
|
|
update:
|
2020-06-27 09:15:13 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-24 04:09:51 -04:00
|
|
|
- name: Checkout default branch
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Download
|
|
|
|
run: |
|
|
|
|
curl -L -o release/config/geoip.dat "https://github.com/v2fly/geoip/raw/release/geoip.dat"
|
|
|
|
curl -L -o release/config/geosite.dat "https://github.com/v2fly/domain-list-community/raw/release/dlc.dat"
|
2020-06-27 09:15:13 -04:00
|
|
|
|
2020-08-24 04:09:51 -04:00
|
|
|
- name: push
|
|
|
|
run: |
|
|
|
|
git config --local user.email "action@github.com"
|
|
|
|
git config --local user.name "GitHub Action"
|
|
|
|
git commit -am "update geoip, geosite"
|
|
|
|
git push -v --progress
|