Skip to content

Replace GitVersion with tag-driven versioning #16

Replace GitVersion with tag-driven versioning

Replace GitVersion with tag-driven versioning #16

name: Update Cloudflare Proxies
on:
schedule:
- cron: '0 0 1 * *' # runs at 00:00 UTC on the 1st day of every month
workflow_dispatch:
push:
paths:
- '.github/workflows/update-cloudflare-proxies.yml'
- 'Internal.Common/CloudflareIPs.targets'
jobs:
update-proxies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: ${{ github.ref }}
- uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0
with:
global-json-file: global.json
- name: Regenerate Cloudflare IPs source
run: dotnet build Internal.Common/Internal.Common.csproj -p:UpdateCloudflareIPs=true
- name: Commit and Push Changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add Internal.Common/Utils/CloudflareNetworks.g.cs
if git diff --cached --quiet; then
echo "No changes detected."
else
git commit -m "chore: Update Cloudflare proxy IP lists [auto-generated]"
git push
fi