komikku/.github/workflows/codeberg_mirror.yml
littlecodedragon af860b5f9d
Some checks failed
Forgejo Release Builder / release (push) Failing after 27m23s
Merge remote-tracking branch 'upstream/master'
2026-05-06 16:06:29 +02:00

27 lines
791 B
YAML
Executable file

# 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-24.04'
steps:
- uses: actions/checkout@v4 # Forgejo-compatible (node20)
with:
fetch-depth: 0
- name: Setup SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.CODEBERG_SSH }}" >> ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- 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 }}