Skip to content

Commit 0600b51

Browse files
authored
Merge pull request #74 from OpenSourceWin/fix-ci
Fix ci
2 parents 68d3da6 + bd795ab commit 0600b51

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

.github/workflows/sync-ranking-data-by-month.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@ name: Monthly Script Runner
33
# 触发条件:每月的1号运行
44
on:
55
schedule:
6-
- cron: "0 0 0 * *" # 每月一号的00:00 UTC时间运行
6+
- cron: "0 0 1 * *" # 每月一号的00:00 UTC时间运行
77
workflow_dispatch:
88

99
jobs:
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
@@ -44,24 +42,4 @@ jobs:
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 }}

0 commit comments

Comments
 (0)