-
Notifications
You must be signed in to change notification settings - Fork 197
Open
Description
「Github 同步到 Gitee」
两端的私钥、密钥、Token 那些都正确配置了,尝试过重新生成,也不行。搜索过一些相关的 Issue(比如 #108)看起来配置都没问题
其中 id_rsa 配置到 github 里的 Actions secrets and variables,也就是 GITEE_PRIVATE_KEY,其中 id_rsa.pub 也配置到 Gitee 里了。GITEE_TOKEN 也配置了,就是不成功。
@Yikun 大佬 help~
name: Sync to Gitee
on:
push:
branches:
- main
jobs:
repo-sync:
name: Sync GitHub to Gitee
runs-on: ubuntu-latest
steps:
- name: Mirror the GitHub repos to Gitee
uses: Yikun/hub-mirror-action@master
with:
src: github/toFrankie
dst: gitee/frankie_li
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: 'blog'
account_type: user
force_update: true
debug: true主要报错如下:
Cmd('git') failed due to: exit code(128)
cmdline: git push -f gitee refs/remotes/origin/*:refs/heads/* --tags --prune
stderr: 'git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.
配置没错:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
