mozillazg / mirror-hg-repo

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 100.0%