ci: Make sure git knows the main branch
Something seems to have changed about how sparse checkouts are done on GHA, so the main branch isn't found.
(cherry picked from commit 184a242937)
This commit is contained in:
parent
405215eb44
commit
c3ec186aaf
|
|
@ -110,6 +110,7 @@ jobs:
|
||||||
- name: Cherry-pick release commit
|
- name: Cherry-pick release commit
|
||||||
if: ${{ inputs.release_type == 'patch' }}
|
if: ${{ inputs.release_type == 'patch' }}
|
||||||
run: |
|
run: |
|
||||||
|
git fetch origin main
|
||||||
git checkout main
|
git checkout main
|
||||||
git cherry-pick -x v${{ steps.bump.outputs.version }}
|
git cherry-pick -x v${{ steps.bump.outputs.version }}
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue