There was an error while loading. Please reload this page.
2 parents de14bef + 683925c commit 10f79faCopy full SHA for 10f79fa
1 file changed
.github/workflows/release.yml
@@ -164,6 +164,12 @@ jobs:
164
persist-credentials: false
165
ref: ${{ github.event.pull_request.merge_commit_sha }}
166
token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
167
+ - name: Restore main branch context
168
+ env:
169
+ TARGET_SHA: ${{ github.event.pull_request.merge_commit_sha }}
170
+ run: |
171
+ git switch --force-create main "${TARGET_SHA}"
172
+ git branch --set-upstream-to=origin/main main
173
- name: Validate release app token
174
if: steps.app-token.outputs.token == ''
175
run: |
0 commit comments