-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.6 KB
/
publish-cloudflare-networks.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
44
45
46
---
name: "Publish Cloudflare Networks"
on:
workflow_dispatch:
env:
DEFAULT_CLOUDFLARE_NETWORKS_FILE: |-
k8s/networking/nginx-external/values.yaml
jobs:
cloudflare-networks:
name: Cloudflare Networks
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: "${{ steps.generate-token.outputs.token }}"
- name: Cloudflare Networks
run: |
bash ./.github/scripts/cloudflare-networks.sh $DEFAULT_CLOUDFLARE_NETWORKS_FILE
- name: Create pull request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
token: "${{ steps.generate-token.outputs.token }}"
committer: "mfin-bot <123061670+mfin-bot[bot]@users.noreply.github.com>"
author: "mfin-bot <123061670+mfin-bot[bot]@users.noreply.github.com>"
branch: github-action/update-cloudflare-networks
delete-branch: true
title: "chore(github-action): update cloudflare networks"
signoff: true
commit-message: "chore(github-action): update cloudflare networks"
body: |
Update cloudflare networks middleware from https://api.cloudflare.com/client/v4/ips
labels: |
renovate/github-action