-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (38 loc) · 1.34 KB
/
cloudflare.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: Cloudflare Proxied Networks Update
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
env:
CLOUDFLARE_PROXIED_NETWORKS_FILE: >-
cluster/apps/networking/ingress-nginx/cloudflare-proxied-networks.txt
jobs:
update:
name: Update
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate Token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
- name: Cloudflare Proxied Networks
run: |
bash ./.github/scripts/cloudflare-proxied-networks.sh > ${{ env.CLOUDFLARE_PROXIED_NETWORKS_FILE }}
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
branch: github-action/update-cloudflare-proxied-networks
delete-branch: true
title: "chore(github-action): update cloudflare proxied networks"
signoff: true
commit-message: "chore(github-action): update cloudflare proxied networks"
body: |
Update cloudflare proxy networks configmap from https://www.cloudflare.com/ips/
labels: |
renovate/github-action