v2fly/.github/workflows/updateGeofile.yml

26 lines
765 B
YAML
Raw Normal View History

2020-08-24 08:09:51 +00:00
name: Update Geofiles
2020-06-27 13:15:13 +00:00
on:
schedule:
2020-08-24 08:09:51 +00:00
- cron: "0 0 * * FRI"
2020-06-27 13:15:13 +00:00
jobs:
2020-08-24 08:09:51 +00:00
update:
if: github.repository == 'v2fly/v2ray-core'
2020-06-27 13:15:13 +00:00
runs-on: ubuntu-latest
steps:
2020-08-30 17:28:47 +00:00
- name: Checkout codebase
2020-08-24 08:09:51 +00: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 13:15:13 +00:00
2020-08-24 08:09:51 +00:00
- name: push
run: |
2021-03-19 04:35:02 +00:00
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
2020-08-24 08:09:51 +00:00
git commit -am "update geoip, geosite"
git push -v --progress