From f925d39e74d5768442bd97e9b952fdc7b5592014 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Sat, 7 Feb 2026 18:29:21 +0100 Subject: [PATCH] ci: add bidirectional sync with Forgejo --- .github/workflows/mirror-to-forgejo.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mirror-to-forgejo.yml diff --git a/.github/workflows/mirror-to-forgejo.yml b/.github/workflows/mirror-to-forgejo.yml new file mode 100644 index 0000000..1385a66 --- /dev/null +++ b/.github/workflows/mirror-to-forgejo.yml @@ -0,0 +1,21 @@ +name: Mirror to Forgejo + +on: + push: + branches: ["**"] + tags: ["**"] + delete: + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Push to Forgejo + run: | + git remote add forgejo https://loke:${{ secrets.FORGEJO_TOKEN }}@git.lorenzoiovino.com/loke/ng2-fittext.git + git push forgejo --all --force + git push forgejo --tags --force