Skip to content

Update IP Ranges

Update IP Ranges #9

Workflow file for this run

name: Update IP Ranges
permissions:
contents: write
on:
schedule:
- cron: '0 0 * * 0' # Run weekly at midnight on Sunday
workflow_dispatch: # Allow manual triggering
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Run CLI to generate Go file
run: |
go run ranges/main.go -format go -output ranges/data/generated.go
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "chore: Update AI's CIDR"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}