You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to recover from this and to continue the remote transition manually by doing the following:
run cd release/[ORG]/[REPO]/ to move into the transitioned repository (replace [ORG] and [REPO] with the org and repo name you are looking to transition).
(on GITHUB) rename gh-pages to legacy/gh-pages (if main is your default, then also rename that to legacy/main)
(on GITHUB) enable github actions to run
(in local) run git fetch --prune origin
(in local) ensure your remote origin is the correct URL
(in local) create an orphan gh-pages branch that contains a workflow that will close all PRs to that branch and force-push it up
(in local) run git switch main && git push --force --set-upstream origin main
(on GITHUB) set the main branch to be the default
(on GITHUB) (optional) add branch protection to the main branch (to prevent people from accidentally force-pushing)
(on GITHUB) lock all branches that start with legacy/
(on GITHUB) when the "01 Build and Deploy" workflow finishes running, go to settings/pages and then switch pages to build from the gh-pages branch. When that is complete, your new site will be available in about 20 seconds.
The text was updated successfully, but these errors were encountered:
The release workflow cannot rename the default branch because of a regression in behaviour for GitHub Fine-Grained tokens (see my discussion comment on GitHub's request for comments).
This is during the first phase of the transition so the upstream repository is not affected:
Upstream repository status
Because the error occurs on the first API call, the upstream repository is not affected.
Local status
There will be a local copy of the transitioned repository and the transition hash records:
Moving forward
It is possible to recover from this and to continue the remote transition manually by doing the following:
cd release/[ORG]/[REPO]/
to move into the transitioned repository (replace[ORG]
and[REPO]
with the org and repo name you are looking to transition).gh-pages
tolegacy/gh-pages
(ifmain
is your default, then also rename that tolegacy/main
)git fetch --prune origin
gh-pages
branch that contains a workflow that will close all PRs to that branch and force-push it upgit switch main && git push --force --set-upstream origin main
legacy/
gh-pages
branch. When that is complete, your new site will be available in about 20 seconds.The text was updated successfully, but these errors were encountered: