From 553125c27d17bbe8fac25a689c192d4b362ee9ff Mon Sep 17 00:00:00 2001 From: Steven Koppens Date: Sun, 12 Jul 2026 12:47:18 +0200 Subject: [PATCH] ci: mirror repo to Codeberg on push to main --- .github/workflows/codeberg-mirror.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/codeberg-mirror.yml diff --git a/.github/workflows/codeberg-mirror.yml b/.github/workflows/codeberg-mirror.yml new file mode 100644 index 0000000..46aa68c --- /dev/null +++ b/.github/workflows/codeberg-mirror.yml @@ -0,0 +1,19 @@ +name: Mirror to Codeberg +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Push to Codeberg + run: | + git remote add codeberg \ + "https://${{ secrets.CODEBERG_USER }}:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/trustyourwebsite/${{ github.event.repository.name }}.git" + git push codeberg main --force + git push codeberg --tags --force