Skip to content

Send Cloudflare Analytics Notification #25

Send Cloudflare Analytics Notification

Send Cloudflare Analytics Notification #25

Workflow file for this run

name: Send Cloudflare Stats
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
jobs:
send_cloudflare_stats:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run script
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
ZONE_ID: ${{ secrets.ZONE_ID }}
APP_ID: ${{ secrets.APP_ID }}
APP_SECRET: ${{ secrets.APP_SECRET }}
OPEN_ID: ${{ secrets.OPEN_ID }}
TEMPLATE_ID: ${{ secrets.TEMPLATE_ID }}
run: |
python report_cdn.py # 替换为你的脚本名称