updateGeofile.yml 723 B

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