Skip to content

Update List

Update List #233

Workflow file for this run

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 "action@github.com"
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