Skip to content

Commit 9d3700d

Browse files
Create build.yaml
1 parent 5c8e29e commit 9d3700d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
schedule:
3+
- cron: '0 0 * * *'
4+
5+
workflow_dispatch: # click the button on Github repo!
6+
7+
8+
jobs:
9+
sync_with_upstream:
10+
runs-on: ubuntu-latest
11+
name: Sync master with upstream
12+
13+
steps:
14+
- name: Checkout to master branch
15+
uses: actions/checkout@v2
16+
with:
17+
ref: master
18+
- name: Pull upstream changes
19+
id: sync
20+
uses: aormsby/Fork-Sync-With-Upstream-action@v2.1
21+
with:
22+
upstream_repository: grandyang/leetcode
23+
upstream_branch: master
24+
target_branch: master
25+
git_pull_args: --allow-unrelated-histories --rebase=merges --ff

0 commit comments

Comments
 (0)