Skip to content

action-pack/gitlab-sync

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab Sync

Build Version Size

GitHub Action to mirror a repository to GitLab.

Usage 🚀

name: GitLab Sync
on: [push, create, delete, workflow_dispatch]

jobs:
  sync:
    name: GitLab Sync
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          # Required to mirror all branches and tags.
          fetch-depth: 0

      - uses: action-pack/gitlab-sync@v3
        with:
          username: your-gitlab-username
          url: https://gitlab.com/your-gitlab-namespace/your-repo.git
          # Personal access token with write access to the target GitLab repository.
          token: ${{ secrets.GITLAB_TOKEN }}

Notes

On GitLab.com, create a personal access token with the write_repository scope and save it as a GitHub secret, for example GITLAB_TOKEN. The target repository must already exist.

Stars 🌟

Stargazers

About

Action to mirror a repository to GitLab.

Topics

Resources

License

Stars

19 stars

Watchers

1 watching

Forks

Contributors

Languages

  • Shell 100.0%