From 53f730b7aa76943134d7ee54fbd5fc6073c25292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Tue, 9 Jul 2024 23:08:20 +0200 Subject: [PATCH] ci: sync also to gitlab mirror --- .github/workflows/mirror.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 8d8b254..9c74d6c 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -8,6 +8,7 @@ jobs: sync-codeberg: if: github.repository_owner == 'xHyroM' runs-on: ubuntu-24.04 + continue-on-error: true steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -19,3 +20,18 @@ jobs: target-url: "https://codeberg.org/xHyroM/bun-discord-bot.git" target-username: ${{ secrets.CODEBERG_USERNAME }} target-token: ${{ secrets.CODEBERG_TOKEN }} + sync-gitlab: + if: github.repository_owner == 'xHyroM' + runs-on: ubuntu-24.04 + continue-on-error: true + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Synchronize code to other Git platforms + uses: wangchucheng/git-repo-sync@v0.1.0 + with: + target-url: "https://gitlab.com/xhyrom/bun-discord-bot.git" + target-username: ${{ secrets.GITLAB_USERNAME }} + target-token: ${{ secrets.GITLAB_TOKEN }}