diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.yml new file mode 100644 index 0000000000..700676efb5 --- /dev/null +++ b/.github/workflows/sync-fork.yml @@ -0,0 +1,27 @@ +name: Sync Fork +on: + schedule: + - cron: '0 0 * * 0' + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + + - uses: actions/checkout@v3 + with: + token: ${{ steps.app-token.outputs.token }} + fetch-depth: 0 + + - name: Sync with upstream + run: | + git remote add upstream https://github.com/rjsf-team/react-jsonschema-form.git + git fetch upstream + git merge upstream/main --ff-only + git push origin main