1
0
Fork 0

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

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 }}