Skip to content

Commit 3fe712e

Browse files
committed
fix: update sync workflow
1 parent cdb9796 commit 3fe712e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/sync.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [ master ]
66

77
jobs:
8-
build:
8+
sync:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Sync to gitee.com
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Set ssh environment
2020
env:
21-
SSH_PRIVATE_KEY: ${{ secrets.RSA_PRIVATE_KEY }}
21+
SSH_PRIVATE_KEY: ${{ secrets.CODING_RSA_PRIVATE_KEY }}
2222
run: |
2323
mkdir -p ~/.ssh/
2424
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
@@ -33,6 +33,4 @@ jobs:
3333
cd /tmp
3434
git clone git@github.com:doocs/leetcode.git leetcode
3535
cd leetcode
36-
git checkout master
37-
git remote add coding git@e.coding.net:doocs/leetcode.git
38-
git push coding master
36+
git remote add coding git@e.coding.net:doocs/leetcode.git

0 commit comments

Comments
 (0)