Skip to content

MXYZ Repo Sync Util

Actions
Action to Sync your repo to a remote repo, such as GitLab
v1.1
Latest
Star (1)

git-sync-action

A Simple action to Sync two git repos

The Following example will mirror ANY change to GitLab

name: Gitlab Sync

on:
  - push
  - delete

permissions: read-all

jobs:
  sync:
    runs-on: ubuntu-latest
    name: Git Repo Sync
    steps:      
    - uses: actions/checkout@v4
      with:
        fetch-depth: 0
    - uses: MatthiesenXYZ/[email protected]
      with:
        # Such as https://gitlab.com/matthiesenxyz/astro-ghostcms.git
        target-url: ${{ secrets.GITLAB_URL }}
        # Such as amatthiesen
        target-username: ${{ secrets.GITLAB_USERNAME }}
        # Create a Personal Access Token on gitlab.com and store it in GitHub Secrets as GITLAB_TOKEN
        target-token: ${{ secrets.GITLAB_TOKEN }}

MXYZ Repo Sync Util is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Action to Sync your repo to a remote repo, such as GitLab
v1.1
Latest

MXYZ Repo Sync Util is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.