Skip to content

Reset DNS

Reset DNS #212

Workflow file for this run

name: Reset DNS
on:
# push:
# branches:
# - main
schedule:
- cron: "40 20 * * *"
jobs:
reset:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # 使用 Python 3.x 版本
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run reset script
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
run: python .github/workflows/reset.py