From 13dafe60c93b4ed383bff304b41a5d826f53f93e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Tue, 9 Jul 2024 22:59:35 +0200 Subject: [PATCH] ci: mirror --- .github/workflows/mirror.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..8d8b254 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,21 @@ +name: Sync to Mirror + +on: + - push + - delete + +jobs: + sync-codeberg: + if: github.repository_owner == 'xHyroM' + runs-on: ubuntu-24.04 + 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://codeberg.org/xHyroM/bun-discord-bot.git" + target-username: ${{ secrets.CODEBERG_USERNAME }} + target-token: ${{ secrets.CODEBERG_TOKEN }}