Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Mirror Public Repo to Private Repo #38

Mirror Public Repo to Private Repo

Mirror Public Repo to Private Repo #38

Workflow file for this run

name: Mirror Public Repo to Private Repo
on:
schedule:
# Runs every day at 00:00 UTC. Adjust the cron schedule as necessary.
- cron: '*/5 0 * * *'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout private repo
uses: actions/checkout@v2
# with:
# token: ${{ secrets.PUBLIC_PAT }}
# path: 'private-repo'
- name: Sync public repository changes
run: |
git remote add public https://github.com/cerebrotech/documentation-split-public
git fetch public
git merge public/main --allow-unrelated-histories -m "Merge public repository changes"
git push origin main
working-directory: ./private-repo