Files
ConformalLabpp/.gitea/workflows/mirror-to-codeberg.yml
Tarik Moussa b9f739319f
Some checks failed
C++ Tests / test (push) Failing after 1m12s
ci: fix mirror workflow – remove actions/checkout (needs Node.js)
Replace JS action with plain git clone --bare + push --mirror.
No Node.js required → runs directly on the Pi host without a container.
Also upgrades from single-branch push to a full mirror of all refs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 00:15:43 +02:00

24 lines
541 B
YAML

name: Mirror to Codeberg
on:
push:
branches:
- main
- dev
jobs:
mirror:
runs-on: eulernest
steps:
- name: Mirror all branches to Codeberg
env:
CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }}
run: |
git clone --bare \
https://oauth2:${GITHUB_TOKEN}@git.eulernest.eu/conformallab/ConformalLabpp.git \
repo.git
cd repo.git
git push --mirror \
https://TMoussa:${CODEBERG_TOKEN}@codeberg.org/TMoussa/ConformalLabpp.git