Automation for Codeberg mirror
This commit is contained in:
parent
5721214cb8
commit
1d6925b950
1 changed files with 21 additions and 0 deletions
21
.github/workflows/sync-mirror.yml
vendored
Normal file
21
.github/workflows/sync-mirror.yml
vendored
Normal 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 }}
|
||||
|
Loading…
Reference in a new issue