forked from luxysiv/Cloudflare-Gateway-Pihole
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1003 Bytes
/
main.yml
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
name: Add Rules to Cloudflare Gateway
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
run:
name: Cloudflare Gateway
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Keep alive
uses: gautamkrishnar/keepalive-workflow@v1
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Cloudflare Gateway Zero Trust
run: python -m src
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_IDENTIFIER: ${{ secrets.CF_IDENTIFIER }}
PYTHONDONTWRITEBYTECODE: 1
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 1