Hoverhuang-er / GitlabSyncForFiles

Action to mirror a repository to GitLab.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitlab Sync

Build Version Size

Action to mirror a repository to GitLab.

Usage

name: Gitlab Sync

on: [push, pull_request, create, delete]

jobs:
  sync:
    name: Gitlab Sync
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: action-pack/gitlab-sync@v3
        with:
          username: ${{ github.actor }}
          url: https://gitlab.com/${{ github.repository }}.git
          # url: ${{ secrets.GITLAB_URL }}
          # username: ${{ secrets.GITLAB_USERNAME }}
          # Personal access token from gitlab.com 
          token: ${{ secrets.GITLAB_TOKEN }}

About

Action to mirror a repository to GitLab.

License:MIT License


Languages

Language:Shell 100.0%