chore: Use git mirror for GitLab and Codeberg #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mirror to Codeberg and GitLab | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: 0 | |
| - name: Mirror to GitLab | |
| uses: cynicsketch/mirror-action@b1e3c960aead673763e5ccb22007129401a15917 | |
| with: | |
| REMOTE: 'git@gitlab.com:ffflorian/node-packages.git' | |
| REMOTE_NAME: 'gitlab-mirror' | |
| GIT_SSH_KNOWN_HOSTS: 'gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf' | |
| GIT_SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SECRET }} | |
| - name: Mirror to Codeberg | |
| uses: cynicsketch/mirror-action@b1e3c960aead673763e5ccb22007129401a15917 | |
| with: | |
| REMOTE: 'git@codeberg.org:ffflorian/node-packages.git' | |
| REMOTE_NAME: 'codeberg-mirror' | |
| GIT_SSH_KNOWN_HOSTS: 'codeberg.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIVIC02vnjFyL+I4RHfvIGNtOgJMe769VTF1VR4EB3ZB' | |
| GIT_SSH_PRIVATE_KEY: ${{ secrets.CODEBERG_SECRET }} |