Skip to content

cniethammer/github-push-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

github-to-gitlab-push-sync

This workflow sets up a GitHub action that will sync branches/tags from a GitHub repository to a gitlab repository.

To set this up:

1.) Create the target repository on the gitlab server and push the initial version of the repo manually.

2.) Create a project access token for the repository on the gitlab server. (Project->Settings->Access Tokens->Add new token) The token needs the write_repository scope and maintainer role.

3.) Create action secrets on the GitHub repository named ACCESS_TOKEN_NAME and ACCESS_TOKEN with the corresponding values. (Settings->Secrets and Variables->Actions->New repository secret)

4.) Add the .github/workflows/github-to-gitlab-push-sync.yml file to your GitHub repository and update the 'target-url' in it to point to your gitlab repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published