Update List #312
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update List | |
on: | |
schedule: | |
- cron: '0 1 * * *' # At 01:00 UTC daily | |
jobs: | |
download-and-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Download file | |
run: | | |
curl -f -o vpn-or-datacenter-ipv4-ranges.txt -L ${{ secrets.VPN_OR_DATACENTER_IPV4_RANGES_FILE_URL }} | |
- name: Commit and push if changed | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add vpn-or-datacenter-ipv4-ranges.txt | |
git commit -m "Update list" || exit 0 # This will not fail if there's nothing to commit | |
git push |