feat: all shocker logs pagination #32
This file contains hidden or 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 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' | |
| - 'Common/CloudflareIPs.targets' | |
| jobs: | |
| update-proxies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: ${{ github.ref }} | |
| - uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 | |
| with: | |
| global-json-file: global.json | |
| - name: Regenerate Cloudflare IPs source | |
| run: dotnet build Common/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 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 |