updateGeofile.yml 675 B

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