Update main.yaml #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 转换 | ||
#on: | ||
#schedule: | ||
#- cron: '0 5 * * *' # 每天凌晨 5 点执行 | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: pip install pandas | ||
- name: Run IP extraction script | ||
run: python 转换.py | ||
- name: Commit 和 push changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'Update ip.txt with extracted IPs' | ||
branch: 优选ip |