Skip to content

Commit 09d4200

Browse files
committed
Ensure main branch is fetched before switching to it
1 parent 05d5876 commit 09d4200

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ jobs:
228228
- name: Update main branch (only for GA releases)
229229
if: ${{ inputs.dryRun == false && !contains(inputs.releaseVersion, '-') }}
230230
run: |
231+
git fetch origin main
231232
git switch main
232233
git merge --ff-only "${RELEASE_TAG}"
233234
git push origin main

0 commit comments

Comments
 (0)