ci: add bidirectional sync with Forgejo
All checks were successful
Mirror to Forgejo / mirror (push) Successful in 3s
Publish to NPM / build (21.x, ubuntu-latest) (push) Successful in 46s

This commit is contained in:
Lorenzo Iovino 2026-02-07 18:29:21 +01:00
parent b8de85a4f9
commit f925d39e74

21
.github/workflows/mirror-to-forgejo.yml vendored Normal file
View file

@ -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