当 Github Actions 部署 R 包文档并中断时,Git 不知道我的 name/email
Git doesn't know my name/email when Github Actions deploy R package documentation and breaks
一段时间以来,我一直很高兴地使用 Github 的操作来 运行 我的图书馆的 R CMD check
并部署包的文档。突然 package action 开始失败并出现以下错误:
── Commiting updated site ──────────────────────────────────────────────────────
Running git add -A .
Running git commit --allow-empty -m 'Built site for lares: 4.9.0@d936943'
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'runner@Mac-1594850189701.(none)')
Error: System command 'git' failed, exit status: 128, stdout & stderr were printed
Stack trace:
1. pkgdown::deploy_to_branch(new_process = FALSE)
2. pkgdown:::github_push(dest_dir, commit_message, remote, branch)
3. pkgdown:::with_dir(dir, { ...
4. base:::force(code)
5. pkgdown:::git("commit", "--allow-empty", "-m", commit_message)
6. processx::run("git", c(...), echo_cmd = echo_cmd, echo = echo, ...
7. throw(new_process_error(res, call = sys.call(), echo = echo, ...
x System command 'git' failed, exit status: 128, stdout & stderr were printed
── Removing worktree ───────────────────────────────────────────────────────────
Running git worktree remove \
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Rtmpp2vz58/file888686837c1
Execution halted
##[error]Process completed with exit code 1.
我已经尝试 运行从 RStudio 的终端使用我的名字和电子邮件连接这些命令,尝试从我编码的不同计算机,检查 pkgdown::deploy_to_branch()
文档...没有成功。
知道如何解决这个问题吗?我没看到什么?这是最近更改的错误吗?
- run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
只需在您的工作流程中的某处添加这样的步骤即可。
事实上,它看起来 you already (almost) wrote a fix but decided for some reason to use Rscript
as shell for that, and didn't close '
. That threw other kind of error so you kicked it out 并且回到了第一个广场 :)
一段时间以来,我一直很高兴地使用 Github 的操作来 运行 我的图书馆的 R CMD check
并部署包的文档。突然 package action 开始失败并出现以下错误:
── Commiting updated site ──────────────────────────────────────────────────────
Running git add -A .
Running git commit --allow-empty -m 'Built site for lares: 4.9.0@d936943'
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'runner@Mac-1594850189701.(none)')
Error: System command 'git' failed, exit status: 128, stdout & stderr were printed
Stack trace:
1. pkgdown::deploy_to_branch(new_process = FALSE)
2. pkgdown:::github_push(dest_dir, commit_message, remote, branch)
3. pkgdown:::with_dir(dir, { ...
4. base:::force(code)
5. pkgdown:::git("commit", "--allow-empty", "-m", commit_message)
6. processx::run("git", c(...), echo_cmd = echo_cmd, echo = echo, ...
7. throw(new_process_error(res, call = sys.call(), echo = echo, ...
x System command 'git' failed, exit status: 128, stdout & stderr were printed
── Removing worktree ───────────────────────────────────────────────────────────
Running git worktree remove \
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Rtmpp2vz58/file888686837c1
Execution halted
##[error]Process completed with exit code 1.
我已经尝试 运行从 RStudio 的终端使用我的名字和电子邮件连接这些命令,尝试从我编码的不同计算机,检查 pkgdown::deploy_to_branch()
文档...没有成功。
知道如何解决这个问题吗?我没看到什么?这是最近更改的错误吗?
- run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
只需在您的工作流程中的某处添加这样的步骤即可。
事实上,它看起来 you already (almost) wrote a fix but decided for some reason to use Rscript
as shell for that, and didn't close '
. That threw other kind of error so you kicked it out 并且回到了第一个广场 :)