Skip to content

Commit a8fd6af

Browse files
committed
Secure pages.json using GitHub secrets
1 parent 869071d commit a8fd6af

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/notion-sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434

3535
# Step 4: Run the Notion sync script
3636
- name: Run Notion sync
37-
run: node sync_notion.js
37+
run: |
38+
echo '${{ secrets.NOTION_PAGE_IDS }}' > pages.json
39+
node sync_notion.js
3840
working-directory: ./notion
3941
env:
4042
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.env
22
node_modules/
33
.DS_Store
4+
notion/pages.json

0 commit comments

Comments
 (0)