Giter VIP home page Giter VIP logo

github-repository-sync-action's Introduction

GitHub Action build status

Git Repository Sync Action

This action pushes all commits in the branch that this action is run on into any remote git repository.

Check out a sample workflow.

Usage

Be sure to run the actions/checkout action in a step before this action so that the git repository is initialized.

# File: .github/workflows/mirror.yml
- uses: net-engine/github-repository-sync-action@v1
  with:
    # The SSH private key for SSH connection to the target repository.
    # We strongly recommend saving this value as a GitHub Secret and using deploy
    # keys within the target repository
    ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
    # The SSH-based URL to the target repository
    target_repo_url: [email protected]:net-engine/github-repository-sync-action-test.git

Notes

Inspired by the following actions which may be more suitable for your workflow, e.g. syncing any source repository and branch to any destination, or copying all branches.

TODO

  • Support for any to and from branch, similar to actions/checkout@v2
  • Make SSH key-based authentication optional to support username/password authentication
  • Support for the pull_request event

License

The scripts and documentation in this project are released under the MIT License

github-repository-sync-action's People

Contributors

martinbjeldbak 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.