Skip to content

Commit 142e332

Browse files
authored
Created github action to synch with gitee (#687)
* Create sync.yml * Update sync.yml * Update sync.yml
1 parent 908924d commit 142e332

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/sync.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: sync
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the main branch
6+
release:
7+
branches: [ main ]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
sync:
12+
runs-on: ubuntu-latest
13+
name: Git Repo Sync
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- uses: devtron-labs/[email protected]
19+
with:
20+
target-url: ${{ secrets.TARGET_URL }}
21+
target-username: ${{ secrets.TARGET_USER_NAME }}
22+
target-token: ${{ secrets.GITEE_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)