keiyoushi-extensions-source/.github/workflows/codeberg_mirror.yml

22 lines
586 B
YAML

# Sync repo to the Codeberg mirror
name: Mirror Sync
on:
push:
branches: [ "main" ]
workflow_dispatch: # Manual dispatch
schedule:
- cron: "0 */8 * * *"
jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75 # v1
with:
target_repo_url: "git@codeberg.org:keiyoushi/extensions-source.git"
ssh_private_key: ${{ secrets.CODEBERG_SSH }}