From 60dc92e2cf1d9af1b64dadb22d2a290680df409c Mon Sep 17 00:00:00 2001 From: "Tran M. Cuong" Date: Wed, 19 Jun 2024 11:57:40 +0700 Subject: [PATCH] [skip ci] codeberg mirror acction --- .github/workflows/codeberg_mirror.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/codeberg_mirror.yml diff --git a/.github/workflows/codeberg_mirror.yml b/.github/workflows/codeberg_mirror.yml new file mode 100644 index 000000000..0041e62b7 --- /dev/null +++ b/.github/workflows/codeberg_mirror.yml @@ -0,0 +1,22 @@ +# Sync repo to the Codeberg mirror +name: Mirror Sync + +on: + push: + branches: [ "master" ] + workflow_dispatch: # Manual dispatch + # schedule: + # - cron: "0 */8 * * *" + +jobs: + codeberg: + if: github.repository == 'komikku-app/komikku' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + - uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75 # v1.1.1 + with: + target_repo_url: "git@codeberg.org:cuong-tran/komikku.git" + ssh_private_key: ${{ secrets.CODEBERG_SSH }}