Skip to content

Commit ff7250d

Browse files
tianzhouclaude
andcommitted
fix: fetch latest main before creating blog post branch
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e31300c commit ff7250d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/weekly-blog-post.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
run: |
5656
BRANCH="blog/weekly-$(date +%Y-%m-%d)"
57-
git checkout -b "$BRANCH"
57+
git fetch origin main
58+
git checkout -b "$BRANCH" origin/main
5859
git add website/content/blog/
5960
git config user.name "github-actions[bot]"
6061
git config user.email "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)