Skip to content

GitHub Actions CloudFlare2DNSPod Bot #6309

GitHub Actions CloudFlare2DNSPod Bot

GitHub Actions CloudFlare2DNSPod Bot #6309

Workflow file for this run

name: 'GitHub Actions CloudFlare2DNSPod Bot'
on:
push:
branches:
- master
schedule:
- cron: '*/15 * * * *'
workflow_dispatch: # 添加此行以启用手动触发
jobs:
build:
runs-on: ubuntu-20.04 # 使用支持 Python 3.7 的系统
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Set up Python'
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: 'Install dependencies'
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: 'Run cf2dns'
env:
CONFIG: ${{ secrets.CONFIG }}
DOMAINS: ${{ secrets.DOMAINS }}
PROVIDER: ${{ secrets.PROVIDER }}
run: python cf2dns_actions.py