Github Action to Push Latest Change to Corresponding GitLab Mirror Repository
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"
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.
See CHANGELOG for more details on what has been changed in the latest release.
This project is licensed under the terms of the MIT license, see LICENSE for more details.
