all repos — zola-bearblog @ ef543fa36e8bbc4c56c0a666da9e438988405616

Port of bear blog theme to zola

Mirror readme to GitHub

Alin
commit

ef543fa36e8bbc4c56c0a666da9e438988405616

parent

4c1bef786a3199773b1b5c09f30c10b96c748c28

1 file changed, 35 insertions(+), 0 deletions(-)

changed files
A .forgejo/workflows/mirror.yml
@@ -0,0 +1,35 @@
+on: + push: + branches: + - main + +jobs: + mirror: + runs-on: codeberg-tiny-lazy + steps: + - name: Check out the repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Check out the target repository + run: | + git clone github.com/${{ forgejo.repository }} target || { + git init --initial-branch=${{ forgejo.ref_name }} target && + git remote set-url origin https://github.com/${{ forgejo.repository }}.git + } + + - name: Filter repository + uses: https://codeberg.org/alinnow/filter-repo-action@v1 + with: + source: . + target: target + paths: | + README.md + LICENSE + prune_empty: never + + - name: Push filtered repository + run: | + cd target + git push --force --mirror https://${{ secrets.OTHER_FORGE_TOKEN }}@github.com/${{ forgejo.repository }}