Action to mirror a repository to GitLab.
name: Gitlab Sync
on: [push, pull_request, create, delete]
jobs:
sync:
name: Gitlab Sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: action-pack/gitlab-sync@v3
with:
username: ${{ github.actor }}
url: https://gitlab.com/${{ github.repository }}.git
# Personal access token from gitlab.com
token: ${{ secrets.GITLAB_TOKEN }}