From b9f739319fbcddfe4baa9b79773854c64ca58856 Mon Sep 17 00:00:00 2001 From: Tarik Moussa Date: Sun, 10 May 2026 00:15:43 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20mirror=20workflow=20=E2=80=93=20rem?= =?UTF-8?q?ove=20actions/checkout=20(needs=20Node.js)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .gitea/workflows/mirror-to-codeberg.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/mirror-to-codeberg.yml b/.gitea/workflows/mirror-to-codeberg.yml index 89968c3..0094ad2 100644 --- a/.gitea/workflows/mirror-to-codeberg.yml +++ b/.gitea/workflows/mirror-to-codeberg.yml @@ -11,11 +11,13 @@ jobs: runs-on: eulernest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # vollständige History für mirror-push - - - name: Push to Codeberg mirror + - name: Mirror all branches to Codeberg + env: + CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }} run: | - git remote add codeberg https://TMoussa:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/TMoussa/ConformalLabpp.git - git push codeberg HEAD:${{ github.ref_name }} --force + 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