添加每日追踪器同步工作流和同步脚本

This commit is contained in:
2026-03-16 01:27:26 +08:00
Unverified
parent d3100724de
commit b30bdfdf39
2 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
name: Daily Tracker Sync
on:
schedule:
- cron: '0 0 * * *' # 每天凌晨运行
workflow_dispatch: # 允许手动在页面点击“重新运行”
jobs:
update-list:
runs-on: ubuntu-latest # 你的 act_runner 标签
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Run sync script
run: node sync-trackers.js
- name: Commit and Push
run: |
git config --local user.email "action@gitea.com"
git config --local user.name "Gitea Action"
git add list/
git commit -m "Update tracker list: $(date +%Y-%m-%d)" || exit 0
git push origin main