Skip to content

Commit 1cd3ccc

Browse files
authored
Create sync-fork.yml (#118)
1 parent ea2dc12 commit 1cd3ccc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/sync-fork.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: sync-fork
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch: { }
6+
jobs:
7+
sync:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- run: gh repo sync $REPOSITORY -b master
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
REPOSITORY: ${{ github.repository }}
16+
BRANCH_NAME: ${{ github.ref_name }}

0 commit comments

Comments
 (0)