# Pushes the contents of the repo to the Codeberg mirror name: Mirror to Codeberg permissions: contents: read on: push: branches: - main workflow_dispatch: # Cancel older runs if a new one starts (per workflow + branch) concurrency: group: ${{ github.workflow }}-${{ github.repository }}-${{ github.ref }} cancel-in-progress: true jobs: codeberg: # Extra safety so forks don't try to run it if: ${{ github.repository == 'armbian/build' }} runs-on: ubuntu-latest steps: - name: Checkout full history uses: actions/checkout@v6 with: fetch-depth: 0 - name: Mirror to Codeberg uses: pixta-dev/repository-mirroring-action@v1 with: target_repo_url: git@codeberg.org:armbian/build.git ssh_private_key: ${{ secrets.GHA_SSH_KEY }}