Automation for Codeberg mirror

This commit is contained in:
Alicia Sykes 2022-07-30 22:18:02 +01:00 committed by GitHub
parent 5721214cb8
commit 1d6925b950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
.github/workflows/sync-mirror.yml vendored Normal file
View File

@ -0,0 +1,21 @@
# Pushes the contents of the repo to the Codeberg mirror
name: 🪞 Mirror to Codeberg
on:
push:
branches: [ 'main' ]
workflow_dispatch: # Manual dispatch
schedule:
- cron: '0 5 * * 6'
jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- name: git-sync
uses: wei/git-sync@v3
with:
source_repo: "lissy93/awesome-privacy"
source_branch: "main"
destination_repo: "git@codeberg.org:alicia/awesome-privacy.git"
destination_branch: "main"
ssh_private_key: ${{ secrets.CODEBERG_SSH }}