1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-04 09:17:32 -05:00
v2fly/.github/workflows/updateGeofile.yml

26 lines
723 B
YAML
Raw Normal View History

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:
if: github.repository == 'v2fly/v2ray-core'
2020-06-27 09:15:13 -04:00
runs-on: ubuntu-latest
steps:
2020-08-30 13:28:47 -04:00
- name: Checkout codebase
2020-08-24 04:09:51 -04:00
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