| 1 |
name: Update Geofiles |
| 2 |
|
| 3 |
on: |
| 4 |
schedule: |
| 5 |
- cron: "0 0 * * FRI" |
| 6 |
|
| 7 |
jobs: |
| 8 |
update: |
| 9 |
if: github.repository == 'v2fly/v2ray-core' |
| 10 |
runs-on: ubuntu-latest |
| 11 |
steps: |
| 12 |
- name: Checkout codebase |
| 13 |
uses: actions/checkout@v2 |
| 14 |
|
| 15 |
- name: Download |
| 16 |
run: | |
| 17 |
curl -L -o release/config/geoip.dat "https://github.com/v2fly/geoip/raw/release/geoip.dat" |
| 18 |
curl -L -o release/config/geosite.dat "https://github.com/v2fly/domain-list-community/raw/release/dlc.dat" |
| 19 |
|
| 20 |
- name: push |
| 21 |
run: | |
| 22 |
git config --local user.email "[email protected]" |
| 23 |
git config --local user.name "GitHub Action" |
| 24 |
git commit -am "update geoip, geosite" |
| 25 |
git push -v --progress |