/gitlab-mirror

Github Action to Push Latest Change to Corresponding Gitlab Mirror Repository

Primary LanguageShellGNU General Public License v2.0GPL-2.0

Gitlab-Mirror

License Open Issues Closed Issues Open Pulls Closed Pulls Contributors Activity

Description

Github Action to Push Latest Change to Corresponding GitLab Mirror Repository

Usage

Pre-requisite: Add your GitLab Access Token(preferred) or Password into your GitHub secrets.

---
name: Mirror Repository

on:
  push:
    branches:
      - main

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
  contents: read

jobs:
  gitlab:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0 # This must be set to 0 to avoid shallow cloning.

      - name: Mirror Repository
        uses: 0xTheProDev/gitlab-mirror@v1
        with:
          password: ${{ secrets.GITLAB_PAT }}
          project-id: "github-mirror"
          username: "gitlab"

Reporting a Bug

Head on to Discussion section to report a bug or to ask for any feature. Feel to add your queries about using this library as well under Q & A section of it. Remember, do not create any Issues by yourself, maintainers of this repository will open one if deemed necessary.

Changelog

See CHANGELOG for more details on what has been changed in the latest release.

Contributing

See Contributing Guidelines.

License

This project is licensed under the terms of the MIT license, see LICENSE for more details.

The Pro Dev