~samwhited/blogsync

blogsync/.github/workflows/mirror.yml -rw-r--r-- 430 bytes
5083f77dSam Whited .builds: verify DCO 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: Mirror Repo
on:
  schedule:
    # Backup nightly
    - cron:  '0 0 * * *'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Mirror
      run: |
        git clone --mirror 'https://git.sr.ht/~samwhited/blogsync' blogsync.git
        cd blogsync.git/
        git push --mirror "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}