Skip to content

Best DNS

Best DNS #2471

Workflow file for this run

name: Best DNS
on:
workflow_dispatch:
schedule:
- cron: '*/10 * * * *'
env:
TZ: Asia/Shanghai
jobs:
update-dns:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@main
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run script
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID_1 }}
CLOUDFLARE_ZONE_NAME: ${{secrets.CLOUDFLARE_ZONE_NAME}}
run: |
python .github/workflows/best.py
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
retain_days: 0
keep_minimum_runs: 5