Skip to content

Commit 4269411

Browse files
authored
Create sync.yml
Gitee 同步项目
1 parent ae79030 commit 4269411

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/sync.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Mirror to Gitee Repo
2+
3+
on: [ push ]
4+
5+
# Ensures that only one mirror task will run at a time.
6+
concurrency:
7+
group: git-mirror
8+
9+
jobs:
10+
git-mirror:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: wearerequired/git-mirror-action@v1
14+
env:
15+
SSH_PRIVATE_KEY: ${{ secrets.SYNC_GITEE_PRI_KEY }}
16+
with:
17+
source-repo: "git@github.com:itcharge/LeetCode-Py.git"
18+
destination-repo: "git@gitee.com:itcharge/LeetCode-Py.git"

0 commit comments

Comments
 (0)