ci: add mirror-to-codeberg workflow
Some checks failed
C++ Tests / test (push) Failing after 53s

Automatically pushes main and dev to the Codeberg mirror
(codeberg.org/TMoussa/ConformalLabpp) after every push to eulernest.
Requires CODEBERG_TOKEN secret in the eulernest repo settings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tarik Moussa
2026-05-09 22:04:32 +02:00
parent 54c455449b
commit 9889c4d811

View File

@@ -0,0 +1,21 @@
name: Mirror to Codeberg
on:
push:
branches:
- main
- dev
jobs:
mirror:
runs-on: eulernest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # vollständige History für mirror-push
- name: Push to Codeberg mirror
run: |
git remote add codeberg https://TMoussa:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/TMoussa/ConformalLabpp.git
git push codeberg HEAD:${{ github.ref_name }} --force