Create mirror_to_codeberg.yml

This commit is contained in:
Werner 2025-12-26 10:20:30 +01:00 committed by Igor
parent 8fb61c91d7
commit b397590b28

View File

@ -0,0 +1,19 @@
# Pushes the contents of the repo to the Codeberg mirror
name: Mirror to Codeberg
permissions:
contents: read
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * *' # Daily at 4:30
jobs:
codeberg:
if: ${{ github.repository == 'armbian/build' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with: { fetch-depth: 0 }
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: git@codeberg.org:armbian/build.git
ssh_private_key: ${{ secrets.GHA_SSH_KEY }}