.github/workflows/sync-mirror.yml

19 lines · 529 bytes

 1# Pushes the contents of the repo to the Codeberg mirror
 2name: 🪞 Mirror to Codeberg
 3on:
 4  push:
 5    branches: [ 'main' ]    
 6  workflow_dispatch: # Manual dispatch
 7  schedule:
 8    - cron: '0 5 * * 6'
 9jobs:
10  codeberg:
11    runs-on: ubuntu-latest
12    steps:
13      - uses: actions/checkout@v2
14        with:
15          fetch-depth: 0
16      - uses: pixta-dev/repository-mirroring-action@v1
17        with:
18          target_repo_url: "git@codeberg.org:alicia/awesome-privacy.git"
19          ssh_private_key: ${{ secrets.CODEBERG_SSH }}