Skip to content

Commit 0447c7f

Browse files
committed
update
1 parent 7157c7c commit 0447c7f

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/feed-posts-parser.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Feed Posts Parser
33
on:
44
workflow_dispatch: # Allows manual triggering
55
schedule:
6+
# 每天凌晨5点运行一次
67
- cron: '0 21 * * *' # Runs daily at 21:00
78

89
jobs:
@@ -19,19 +20,15 @@ jobs:
1920
env:
2021
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2122
with:
22-
data_path: '/v2/data.json'
23-
posts_count: 3
24-
date_format: 'YYYY-MM-DD HH:mm'
23+
posts_count: 3 # 取 3 篇文章
2524
# 重新生成一下JSON
2625
- name: Generate data.json
2726
uses: xaoxuu/issues2json@main
2827
env:
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3029
with:
31-
data_version: 'v2'
32-
data_path: '/v2/data.json'
33-
sort: 'posts-desc' # 'created-desc'/'created-asc'/'updated-desc'/'updated-asc'
34-
exclude_issue_with_labels: '审核中, 缺少互动, 缺少文章, 风险网站' # 具有哪些标签的issue不生成到JSON中
30+
sort: 'posts-desc'
31+
exclude_issue_with_labels: '审核中, 风险网站' # 具有哪些标签的issue不生成到JSON中
3532
hide_labels: '白名单' # 这些标签不显示在前端页面
3633
- name: Setup Git Config
3734
run: |

.github/workflows/reachability-checker.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@ jobs:
3232
with:
3333
checker: 'reachability'
3434
unreachable_label: '失联'
35-
exclude_issue_with_labels: '审核中, 白名单, 缺少互动, 缺少文章' # 具有哪些标签的issue不进行检查
35+
exclude_issue_with_labels: '审核中, 白名单' # 具有哪些标签的issue不进行检查
3636
# 检查完毕后重新生成一下JSON
3737
- name: Generate data.json
3838
uses: xaoxuu/issues2json@main
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
with:
42-
data_version: 'v2'
43-
data_path: '/v2/data.json'
44-
sort: 'posts-desc' # created-desc/created-asc/updated-desc/updated-asc/version-desc/posts-desc
45-
exclude_issue_with_labels: '审核中, 缺少互动, 缺少文章, 风险网站' # 具有哪些标签的issue不生成到JSON中
42+
sort: 'posts-desc'
43+
exclude_issue_with_labels: '审核中, 风险网站' # 具有哪些标签的issue不生成到JSON中
4644
hide_labels: '白名单' # 这些标签不显示在前端页面
4745
- name: Setup Git Config
4846
run: |

0 commit comments

Comments
 (0)