Skip to content

Commit e02fe5f

Browse files
authored
Create sync-fork.yaml
For automatically syncing fork with parent repo
1 parent 24dd42a commit e02fe5f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/sync-fork.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sync Upstream
2+
# Uses https://github.com/marketplace/actions/sync-and-merge-upstream-repository-with-your-current-repository
3+
4+
on:
5+
schedule:
6+
# 11:30am UTC
7+
- cron: "30 11 * * *"
8+
# Allows manual workflow run (must in default branch to work)
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: GitHub Sync to Upstream Repository
19+
uses: dabreadman/[email protected]
20+
with:
21+
upstream_repo: "https://github.com/Recycleye/labelbox-python.git"
22+
upstream_branch: "develop"
23+
downstream_branch: "develop"
24+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)