A GitHub Action to mirror Mercurial (hg) repository to GitHub.
Contents
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: mirror https://foss.heptapod.net/pypy/cffi
uses: 'mozillazg/mirror-hg-repo@v2'
with:
source-hg-repo-url: 'https://foss.heptapod.net/pypy/cffi'
destination-git-repo-owner: 'mozillazg'
destination-git-repo-name: 'cffi'
destination-git-personal-token: '${{ secrets.PERSONAL_GIT_TOKEN }}'
source-hg-repo-url
: (Required) The clone URL of a Mercurial (hg) repository. e.g.https://foss.heptapod.net/pypy/cffi
destination-git-repo-owner
: (Required) The owner of Github repository.destination-git-repo-name
: (Required) The name of Github repository.destination-git-personal-token
: (Required) A Github personal access token which have permission to push codes to the repository.force-push
: (Optional) Rungit push
action with the--force
flag. The default value is:false