Skip to content

Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group… #25

Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group…

Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group… #25

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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.ref }}
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.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