Closed sungsphinx closed 8 months ago
For mirroring between Codeberg & GitHub, I have it set up like this:
# CREDIT: https://codeberg.org/nesaku/BiblioReads/src/branch/main/.github/workflows/codeberg-mirror.yml
# Sync repo to the Codeberg mirror
name: Mirror Sync
on:
push:
branches: ["main"]
workflow_dispatch: # Manual dispatch
schedule:
- cron: "0 */6 * * *"
jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: "git@codeberg.org:SOrg/Doggo.git"
ssh_private_key: ${{ secrets.CODEBERG_SSH }}
This way, you could accept PRs on both GitHub & Codeberg and they would sync automatically.
friendly ping @xverizex
Oh. I considered your proposal but have to refuse.
I understand, but what about mirroring to Codeberg though? You could get contributions from both Codeberg and GitHub users, which would make contributing easier (especially for me).
This might not be the easiest process right now as Codeberg has been hit by a DDoS and may be slow, but they have nearly recovered.
I'm not interested in that.
That's sad, but okay.
Alternatives to GitHub
Forgejo (Fork of Gitea, What is unique to Forgejo?) (If you don't want to self-host, you can use Codeberg and request CI access if you wanted to use CI, Forgejo is managed by the community and won't be taken over by a company).
sourcehut (If you don't want to self-host, you can use sr.ht)
GitLab (The Official GitLab instance (gitlab.com) requires a credit card for CI access and sometimes even for signing up, GitLab is also owned by a company, and not managed by the community to my knowledge, not a big issue though)
:information_source: Probably more options out there
Why you should move from GitHub
https://codeberg.org/Recommendations/Mirror_to_Codeberg#why-should-we-mirror-to-codeberg https://sfconservancy.org/GiveUpGitHub https://nogithub.codeberg.page https://github.com/ltGuillaume/LibreWolf-WinUpdater/issues/16 https://github.com/humanetech-community/awesome-humane-tech/issues/33
If this is too much, or not possible at the moment, consider setting up mirrors for Codeberg instead. Thank you for your time!