Skip to content

GitHub Action for mirror Mercurial (hg) repository to GitHub.

License

Notifications You must be signed in to change notification settings

mozillazg/mirror-hg-repo

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirror-hg-repo

A GitHub Action to mirror Mercurial (hg) repository to GitHub.

- uses: actions/setup-python@v5
  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) Run git push action with the --force flag. The default value is: false