A GitHub Action for syncing the master branch between two git repositories via SSH.
Required SSH URLs of the source repo.
Required SSH URLs of the destination repo.
SSH_PRIVATE_KEY
: Create a SSH key which has access to both repositories. On GitHub they are called "deploy keys". Store the private key as a secret and use it in your workflow as seen in the example usage below.
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
with:
source-repo: '[email protected]:wearerequired/git-mirror-action.git'
destination-repo: '[email protected]:wearerequired/git-mirror-action.git'
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.