Skip to content

Commit 722f08b

Browse files
Create sync-fork.yml (#3)
1 parent f21f043 commit 722f08b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/sync-fork.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Sync Fork
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0'
5+
workflow_dispatch:
6+
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/create-github-app-token@v1
12+
id: app-token
13+
with:
14+
app-id: ${{ secrets.APP_ID }}
15+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
16+
17+
- uses: actions/checkout@v3
18+
with:
19+
token: ${{ steps.app-token.outputs.token }}
20+
fetch-depth: 0
21+
22+
- name: Sync with upstream
23+
run: |
24+
git remote add upstream https://github.com/rjsf-team/react-jsonschema-form.git
25+
git fetch upstream
26+
git merge upstream/main --ff-only
27+
git push origin main

0 commit comments

Comments
 (0)