mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-20 04:36:09 +08:00
[skip ci]fix(ci): update sync workflow (#1061)
This commit is contained in:
18
.github/workflows/sync_to_gitee.yml
vendored
18
.github/workflows/sync_to_gitee.yml
vendored
@ -14,10 +14,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Mirror to Gitee
|
- name: Setup SSH
|
||||||
uses: pixta-dev/repository-mirroring-action@v1
|
run: |
|
||||||
with:
|
mkdir -p ~/.ssh
|
||||||
target_repo_url: ${{ vars.GITEE_REPO_URL }}
|
echo "${{ secrets.GITEE_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
ssh-keyscan gitee.com >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
- name: Push to Gitee
|
||||||
|
run: |
|
||||||
|
git remote add gitee ${{ vars.GITEE_REPO_URL }}
|
||||||
|
git push --force gitee main:main
|
||||||
|
Reference in New Issue
Block a user