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