Skip to content
git-commit

GitHub Action

Sync GitHub to GitLab Action

v1.1.0 Latest version

Sync GitHub to GitLab Action

git-commit

Sync GitHub to GitLab Action

A Github Action which will sync a GitHub repository to GitLab as a mirror

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sync GitHub to GitLab Action

uses: adambirds/[email protected]

Learn more about this action in adambirds/sync-github-to-gitlab-action

Choose a version

Sync GitHub to GitLab Action

This GitHub action syncs a GitHub repository to a GitLab repository as a mirror.

Usage

steps:
    - uses: actions/checkout@v2
    - uses: adambirds/[email protected]
      with:
        destination_repository: [email protected]:adambirds/sync-github-to-gitlab.git
        destination_branch_name: main
        destination_ssh_key: ${{ secrets.GITLAB_SSH_KEY }}

Inputs

destination_repository

Required The SSH URL of the GitLab repository to sync to.

destination_branch_name

Not Required The branch of the GitLab repository to sync to. Defaults to main.

destination_ssh_key

Required The SSH key to use to authenticate with the GitLab repository.

License

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