Commit 1d6925b950
Unregistered key
Layout: unified 路 split
.github/workflows/sync-mirror.yml added +21
| @@ -0,0 +1,21 @@ | |||
| 1 | # Pushes the contents of the repo to the Codeberg mirror | ||
| 2 | name: 馃獮 Mirror to Codeberg | ||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: [ 'main' ] | ||
| 6 | workflow_dispatch: # Manual dispatch | ||
| 7 | schedule: | ||
| 8 | - cron: '0 5 * * 6' | ||
| 9 | jobs: | ||
| 10 | codeberg: | ||
| 11 | runs-on: ubuntu-latest | ||
| 12 | steps: | ||
| 13 | - name: git-sync | ||
| 14 | uses: wei/git-sync@v3 | ||
| 15 | with: | ||
| 16 | source_repo: "lissy93/awesome-privacy" | ||
| 17 | source_branch: "main" | ||
| 18 | destination_repo: "git@codeberg.org:alicia/awesome-privacy.git" | ||
| 19 | destination_branch: "main" | ||
| 20 | ssh_private_key: ${{ secrets.CODEBERG_SSH }} | ||
| 21 | |||