We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74bf9f6 commit dc42f0eCopy full SHA for dc42f0e
.github/workflows/sync_to_gitee.yml
@@ -14,10 +14,16 @@ jobs:
14
- name: Checkout
15
uses: actions/checkout@v4
16
with:
17
- fetch-depth: 0
+ fetch-depth: 1
18
19
- - name: Mirror to Gitee
20
- uses: pixta-dev/repository-mirroring-action@v1
21
- with:
22
- target_repo_url: ${{ vars.GITEE_REPO_URL }}
23
- ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}
+ - name: Setup SSH
+ run: |
+ mkdir -p ~/.ssh
+ echo "${{ secrets.GITEE_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
+ chmod 600 ~/.ssh/id_rsa
24
+ ssh-keyscan gitee.com >> ~/.ssh/known_hosts
25
+
26
+ - name: Push to Gitee
27
28
+ git remote add gitee ${{ vars.GITEE_REPO_URL }}
29
+ git push --force gitee main:main
0 commit comments