komikku/.github/workflows/codeberg_mirror.yml
2024-06-19 11:57:40 +07:00

22 lines
642 B
YAML

# 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 }}