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.
35 lines
858 B
YAML
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 }}
|