From 0974c242bfb7d490c3a49a20d31a79e50a182bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C3=ACra?= <166439659+slotmachinedev@users.noreply.github.com> Date: Sat, 4 May 2024 19:24:43 +0000 Subject: [PATCH] Create Codeberg syncing action. --- .github/workflows/codeberg.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/codeberg.yml diff --git a/.github/workflows/codeberg.yml b/.github/workflows/codeberg.yml new file mode 100644 index 0000000..4747e8f --- /dev/null +++ b/.github/workflows/codeberg.yml @@ -0,0 +1,22 @@ +name: Sync to Codeberg +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true +on: + push: + workflow_dispatch: + schedule: + - cron: "0 */6 * * *" + +jobs: + codeberg: + if: github.repository == 'VendroidEnhanced/Vendroid' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75 # v1.1.1 + with: + target_repo_url: "git@codeberg.org:VendroidEnhanced/Vendroid.git" + ssh_private_key: ${{ secrets.CODEBERG_SSH_PRIVATE_KEY }}