diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 000000000..a853db91f --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,24 @@ +name: Sync Upstream Fineract + +# This runs every hour +on: + schedule: + - cron: '0 * * * *' + # Allows manual workflow run (must in default branch to work) + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 + - name: Sync + run: | + set -ex; + git config --local user.email "vidakovic@users.noreply.github.com"; + git config --local user.name "Aleksandar Vidakovic"; + git remote add upstream "https://github.com/apache/fineract.git"; + git fetch upstream; + git rebase upstream/develop develop; + git push -f;