Skip to content

Added repo_sync Github action to sync with old repo #1

Added repo_sync Github action to sync with old repo

Added repo_sync Github action to sync with old repo #1

Workflow file for this run

name: repo_sync
on:
push:
branches: ["**"]
delete:
create:
jobs:
repo_sync:
if: github.repository_owner == 'SkyNotion'
runs-on: ubuntu-latest
steps:
- name: Get repo mirror
run: git clone --mirror "https://github.com/${{ github.repository }}.git"
- name: Push mirror
run: |
cd ${{ github.event.repository.name }}.git
git remote add target https://x-access-token:${{ secrets.TARGET_PAT }}@github.com/Mesh-Sys/${{ github.event.repository.name }}.git
git push --mirror target --force