From cb3b10d8f187655d2ee25438d6538343190d1cbb Mon Sep 17 00:00:00 2001 From: syselement <81392234+syselement@users.noreply.github.com> Date: Mon, 4 Mar 2024 02:04:05 +0100 Subject: [PATCH] Create sync-to-gitlab.yml --- .github/workflows/sync-to-gitlab.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/sync-to-gitlab.yml diff --git a/.github/workflows/sync-to-gitlab.yml b/.github/workflows/sync-to-gitlab.yml new file mode 100644 index 0000000..ef25815 --- /dev/null +++ b/.github/workflows/sync-to-gitlab.yml @@ -0,0 +1,18 @@ +name: Sync Repo To Gitlab + +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: ${{ secrets.TARGET_USERNAME }} + url: ${{ secrets.TARGET_URL }} + # Personal access token from gitlab.com + token: ${{ secrets.TARGET_TOKEN }}