From 9889c4d811e768f86947cbd7680658ade412d616 Mon Sep 17 00:00:00 2001 From: Tarik Moussa Date: Sat, 9 May 2026 22:04:32 +0200 Subject: [PATCH] ci: add mirror-to-codeberg workflow 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 --- .gitea/workflows/mirror-to-codeberg.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/mirror-to-codeberg.yml diff --git a/.gitea/workflows/mirror-to-codeberg.yml b/.gitea/workflows/mirror-to-codeberg.yml new file mode 100644 index 0000000..89968c3 --- /dev/null +++ b/.gitea/workflows/mirror-to-codeberg.yml @@ -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