A minimal mirror of hg.mozilla.org/comm-unified used for localization cross-channel.
The action code is designed with Mercurial repositories such as Mozilla's mozilla-unified and comm-unified in mind as they publish the necessary bookmarks.
The only supported use of the action code in this repository is the temporary mirroring of comm-unified to Github.
The one-way mirror is performed by a Github action under .github/actions/mirror-hgmo. It is a composite action that assumes git-cinnabar is configured and ready to use. Version 0.7 is needed for comm-unified!
The action is triggered in the main workflow (.github/workflows/main.yml) either manually or by cron scheduling.
git-cinnabar is configured to use "bookmark" mode.
Since the mirroring is done back to the same repository, access is controlled by Github's automatic token authentication using GITHUB_TOKEN. No specific setup is needed.
- source-hg-repo-url: Required The clone URL of a Mercurial (hg) repository.
- source-hg-bookmarks: Required Space separated list of Mercurial bookmarks to mirror as Git branches
- force-push: Run
git push
command with the--force
flag. (default: false)
See the workflow file.