This repository contains an github action to sync your current repository with an upstream repository. The work is greatly inspired by actions-registry/github-repo-sync-upstream which didn't work for me.
Example github action:
name: CI
on:
schedule:
- cron: "15 14 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: GitHub Sync to Upstream Repository
uses: mheene/sync-upstream-repo@v0.1.2
with:
# GitHub public upstream repo
upstream_repo: https://github.com/holger24/AFD.git
This action syncs your repo with the upstream repo https://github.com/holger24/AFD.git
every day at 14:15 UTC.