File tree Expand file tree Collapse file tree 1 file changed +3
-25
lines changed
Expand file tree Collapse file tree 1 file changed +3
-25
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,21 @@ name: Monthly Script Runner
33# 触发条件:每月的1号运行
44on :
55 schedule :
6- - cron : " 0 0 0 * *" # 每月一号的00:00 UTC时间运行
6+ - cron : " 0 0 1 * *" # 每月一号的00:00 UTC时间运行
77 workflow_dispatch :
88
99jobs :
1010 run-scripts :
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- # 检出代码
1514 - name : Checkout repository
1615 uses : actions/checkout@v4
1716
18- # 设置 Node.js 环境
1917 - name : Set up Node.js
2018 uses : actions/setup-node@v4
2119 with :
22- node-version : ' 20' # 使用 Node.js 18
20+ node-version : ' 20'
2321
2422 # 运行第一个脚本 sync_xlab.js,从接口获取最新数据
2523 - name : Run sync_xlab.js
4442 git commit -m "chore: Automated data update from scripts"
4543 git push origin main
4644 env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48-
49- # # 创建并推送 PR
50- # - name: Create Pull Request
51- # id: create_pr
52- # uses: peter-evans/create-pull-request@v7
53- # with:
54- # commit-message: "chore: Updating data from xlab"
55- # title: "chore: Updating data from xlab"
56- # body: "Updating data from xlab,and create user homepages"
57- # branch: update-ranking-data
58- # base: "main"
59- # delete-branch: true
60-
61- # # 启用自动合并
62- # - name: Enable auto-merge
63- # uses: peter-evans/enable-pull-request-automerge@v3
64- # with:
65- # token: ${{ secrets.GITHUB_TOKEN }}
66- # pull-request-number: ${{ steps.create_pr.outputs.pull-request-number }}
67- # merge-method: merge
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments