armbian-build/.github/workflows/infrastructure-mirror-to-codeberg.yml
Igor Pecovnik 7a58d69b7d ci: organize GitHub Actions into meaningful categories
Reorganize workflow files and names into 3 main categories:
- Data: Data collection and synchronization workflows
- Infrastructure: Infrastructure tasks (mirroring, forking)
- Maintenance: All PR checks, labels, notifications, and maintenance tasks

All workflows now have capitalized category prefixes for consistency.

Also update internal workflow references to reflect new names.
2026-01-16 15:55:01 +01:00

35 lines
858 B
YAML

# Pushes the contents of the repo to the Codeberg mirror
name: "Infrastructure: 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 }}