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
- Host: GitHub
- URL: https://github.com/haukex/github-mirroring
- Owner: haukex
- Created: 2023-03-26T16:43:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T16:58:54.000Z (about 2 years ago)
- Last Synced: 2025-02-03T16:07:21.768Z (4 months ago)
- Topics: github-actions, mirroring
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.