Ber*_*rdo 5 r pkgdown github-actions
一段时间以来,我一直很高兴使用 Github 的 Actions 来运行我的库R CMD check并部署包的文档。突然,打包操作开始失败,并出现以下错误:
\xe2\x94\x80\xe2\x94\x80 Commiting updated site \xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\nRunning git add -A .\nRunning git commit --allow-empty -m \'Built site for lares: 4.9.0@d936943\'\n\n*** Please tell me who you are.\n\nRun\n\n git config --global user.email "you@example.com"\n git config --global user.name "Your Name"\n\nto set your account\'s default identity.\nOmit --global to set the identity only in this repository.\n\nfatal: unable to auto-detect email address (got \'runner@Mac-1594850189701.(none)\')\n\nError: System command \'git\' failed, exit status: 128, stdout & stderr were printed\n\n Stack trace:\n\n 1. pkgdown::deploy_to_branch(new_process = FALSE)\n 2. pkgdown:::github_push(dest_dir, commit_message, remote, branch)\n 3. pkgdown:::with_dir(dir, { ...\n 4. base:::force(code)\n 5. pkgdown:::git("commit", "--allow-empty", "-m", commit_message)\n 6. processx::run("git", c(...), echo_cmd = echo_cmd, echo = echo, ...\n 7. throw(new_process_error(res, call = sys.call(), echo = echo, ...\n\n x System command \'git\' failed, exit status: 128, stdout & stderr were printed \n\n\xe2\x94\x80\xe2\x94\x80 Removing worktree \xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\nRunning git worktree remove \\\n /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Rtmpp2vz58/file888686837c1\nExecution halted\n##[error]Process completed with exit code 1.\nRun Code Online (Sandbox Code Playgroud)\n我尝试从 RStudio 的终端使用我的姓名和电子邮件运行这些命令,尝试在我编码的不同计算机上尝试,检查pkgdown::deploy_to_branch()文档......但没有成功。
知道如何解决这个问题吗?我没看到什么?最近更改的内容是否存在错误?
\n- run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Run Code Online (Sandbox Code Playgroud)
只需在工作流程中的某个位置添加类似的步骤即可。
事实上,看起来您已经(几乎)编写了一个修复程序,但出于某种原因决定使用Rscript它作为 shell,并且没有 close '。这引发了其他类型的错误,因此您将其踢出并回到第一个位置:)