Skip to content

Commit 0d4a94b

Browse files
Kumari LadliKumari Ladli
authored andcommitted
Fix PR creation to use repo-sync action
1 parent 0d74345 commit 0d4a94b

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/notion-sync.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ jobs:
4646
4747
# Step 6: Create Pull Request
4848
- name: Create Pull Request
49-
uses: peter-evans/create-pull-request@v5
49+
uses: repo-sync/pull-request@v2
5050
with:
51-
token: ${{ secrets.GITHUB_TOKEN }}
52-
branch: notion-to-github
53-
base: main
54-
title: "Sync from Notion"
55-
body: "Automated sync from Notion workspace"
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
source_branch: notion-to-github
53+
destination_branch: main
54+
pr_title: "Sync from Notion - $(date +%Y-%m-%d)"
55+
pr_body: "Automated sync from Notion workspace"
56+
pr_allow_empty: false

0 commit comments

Comments
 (0)