Skip to content

Commit 63db59f

Browse files
committed
Fix PR title date formatting
1 parent fb9c4af commit 63db59f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/notion-sync.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,8 @@ jobs:
5353
5454
# Step 6: Create Pull Request
5555
- name: Create Pull Request
56-
uses: repo-sync/pull-request@v2
57-
with:
58-
github_token: ${{ secrets.GITHUB_TOKEN }}
59-
source_branch: notion-to-github
60-
destination_branch: main
61-
pr_title: "Sync from Notion - $(date +%Y-%m-%d)"
62-
pr_body: "Automated sync from Notion workspace"
63-
pr_allow_empty: false
56+
run: |
57+
DATE=$(date +%Y-%m-%d)
58+
gh pr create --base main --head notion-to-github --title "Sync from Notion - $DATE" --body "Automated sync from Notion workspace" || gh pr edit notion-to-github --title "Sync from Notion - $DATE"
59+
env:
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)