~samwhited/mux

870927168a8bcf448aace86c25e354ceb3af1044 — Sam Whited 1 year, 1 month ago 2c59112
.github: mirror repo to GitHub nightly
2 files changed, 18 insertions(+), 1 deletions(-)

A .github/workflows/mirror.yml
R .github/workflows/{main.yml => pr.yml}
A .github/workflows/mirror.yml => .github/workflows/mirror.yml +18 -0
@@ 0,0 1,18 @@
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/mux'
        cd mux.git/
        git remote add github "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
        git push --mirror github
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

R .github/workflows/main.yml => .github/workflows/pr.yml +0 -1
@@ 1,5 1,4 @@
name: PR Closer

on: [pull_request]

jobs: