migrate.sh: auto-clone + inline gather/extract bash in publish.yml#36
Merged
Conversation
Operators previously had to clone the target repo and run the script from within it. The script now detects whether it is already running inside a clone of the target repo (by comparing the normalised origin URL); if not, it clones to a temp directory and cd's into it, cleaning up on exit. Docs updated to say to run from the devcontainer and to include gh auth login as a prerequisite. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
publish.yml: inline the gather and extract steps as bash (removing the separateassemble.sh), and fixrunner.tempbeing unavailable in reusable workflow job-level env varsmigrate.sh: auto-clone the target repo when not already running inside it — the script now detects its origin URL and clones to a temp dir if needed, so operators can run it directly from the myst-version-switcher-plugin devcontainer without a separate clone stepgh auth loginas an explicit prerequisite, remove the "clone the repo first" requirementTest plan
publish.ymlgather + extract steps work on a PR and main push (inline bash replacesassemble.sh)scripts/migrate.sh ORG/REPO --dry-runfrom the devcontainer (not inside the target repo) and confirm it clones automaticallyEXITtrap cleans up the temp dir after a dry-run🤖 Generated with Claude Code