Skip to content

Commit 0cc5a21

Browse files
committed
fix: cicicic
1 parent 0eb23c1 commit 0cc5a21

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
name: 代码检查
4949
runs-on: ubuntu-latest
5050
needs: setup
51+
env:
52+
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
53+
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
5154

5255
steps:
5356
- name: 检出代码
@@ -91,9 +94,6 @@ jobs:
9194

9295
- name: 生成 Astro 类型
9396
run: pnpm astro sync
94-
env:
95-
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
96-
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
9797

9898
- name: 运行 TypeScript 类型检查
9999
run: pnpm type-check
@@ -104,6 +104,8 @@ jobs:
104104
needs: setup
105105
env:
106106
CI: 'true' # 设置 CI 环境变量为 true,用于测试脚本中区分环境
107+
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
108+
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
107109

108110
steps:
109111
- name: 检出代码

0 commit comments

Comments
 (0)