GithubHelp home page GithubHelp logo

jfx2006 / job-unified-mirror Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1 MB

Mirrors hgmo:comm-unified to Github

License: MIT License

TypeScript 3.89% Makefile 0.87% Python 49.45% Shell 39.25% Perl 2.91% Ruby 3.62%

job-unified-mirror's Introduction

job-mirror-unified

A job to mirror hg repos via github action.

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.

Description

This project sets up a Github action under .github/actions/mirror-hgmo. The source code is under actions/mirror-hgmo, and was originally forked from mirror-hg-repo.

The action is triggered in the main workflow (.github/workflows/main.yml) either manually or by cron scheduling.

Like the original action, Mark Nauwelaerts' fork of git-remote-hg is used for the actual mirroring. It is simply included in this repository from https://github.com/mnauw/git-remote-hg rather than utilizing the copy used by upstream.

Like the original, a Github Personal Token with push access to the Github destination repository is needed.

This project also caches the working copy that it creates using actions/cache.

Action Inputs

  • 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
  • destination-git-repo-owner: Required The owner of Github repository
  • destination-git-repo-name: Required The name of the Github repository
  • force-push: Run git push command with the --force flag. (default: false)
  • path: Path for repo clone (relative to $GITHUB_WORKSPACE)

Example Usage

See the workflow file.

job-unified-mirror's People

Contributors

jfx2006 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.