Skip to content

Commit 12cc066

Browse files
authored
Create opencode-sync.yml
1 parent 1d2001a commit 12cc066

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: GitlabSync
2+
3+
on:
4+
- push
5+
- delete
6+
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
name: Git Repo Sync
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: wangchucheng/git-repo-sync@v0.1.0
16+
with:
17+
# Such as https://github.com/wangchucheng/git-repo-sync.git
18+
target-url: ${{ secrets.TARGET_URL }}
19+
# Such as wangchucheng
20+
target-username: ${{ secrets.TARGET_USERNAME }}
21+
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }}
22+
target-token: ${{ secrets.TARGET_TOKEN }}

0 commit comments

Comments
 (0)