A GitHub Action for synchronizing the current repository with remote non-github repo
Required Complete URL of non-github repository to pull
Required Name of github repo to sync
Optional Name of branch to sync. Default "main"
Make sure to enable the repo
scope and all subscopes inside of that permission.
name: Sync repo
on:
schedule:
- cron: "*/6 * * * *"
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync repository
uses: Correia-jpv/action-sync-repo@main
env:
SECRET_TOKEN: ${{ secrets.PAT }}
with:
src_repo: 'https://correia-jpv/action-sync-repo.git'
dest_repo: correia-jpv/my_repository
dest_branch: 'main'