Skip to content

Commit dc67061

Browse files
kcbergclaude
andcommitted
fix: checkout latest main before version bumping in CI
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cd45047 commit dc67061

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ jobs:
6161
- name: Set up git for pushing
6262
run: |
6363
git remote set-url origin https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git
64+
- name: Set git user for HawkyMcBuilderFace bot
65+
run: |
66+
git config user.name "${{ secrets.HAWKY_APP_USER }}"
67+
git config user.email "${{ secrets.HAWKY_APP_USER_EMAIL }}"
68+
- name: Fetch and checkout latest main
69+
run: |
70+
git fetch origin main
71+
git checkout origin/main
6472
- name: Show current branch and HEAD
6573
run: |
6674
git branch -a
@@ -104,6 +112,10 @@ jobs:
104112
run: |
105113
git config user.name "${{ secrets.HAWKY_APP_USER }}"
106114
git config user.email "${{ secrets.HAWKY_APP_USER_EMAIL }}"
115+
- name: Fetch and checkout latest main
116+
run: |
117+
git fetch origin main
118+
git checkout origin/main
107119
- name: Bump patch version with bumpver
108120
run: bumpver update --patch --commit
109121
- name: Push version bump commit

0 commit comments

Comments
 (0)