An open API service indexing awesome lists of open source software.

https://github.com/haukex/github-mirroring

Example of mirroring a GitHub repository to a remote repository
https://github.com/haukex/github-mirroring

github-actions mirroring

Last synced: 3 months ago
JSON representation

Example of mirroring a GitHub repository to a remote repository

Awesome Lists containing this project

README

        

How to Mirror a GitHub Repository
=================================

This repository contains an example workflow showing how to mirror a GitHub
repository to another remote repository.

1. In the remote repository, configure an access token that has the appropriate
rights to push to the repository. (For example, on GitLab, the default
configuration may be that only Maintainers are allowed to push to Protected
branches, so you may need to change that.)

2. In your GitHub repository, go to the repository settings and create a new
secret in "Actions secrets and variables" which holds the token for the
remote repository.

3. Take the file `.github/workflows/github-mirror.yml` from this repository and
adjust the URL so it points at the remote repository and includes the
authentication information from the secret. **Do not** put any sensitive
information in this file; put this into the secret instead.