朋友圈友链配置好了
1.填错变量名
变量名都能填错,后面检查才发现。
2.Actions报错显示没有推送权限
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 data.db
Traceback (most recent call last):
File “/entrypoint.py”, line 58, in
run()
File “/entrypoint.py”, line 55, in run
debug(git(push_args))
File “/usr/local/lib/python3.7/site-packages/plumbum/commands/base.py”, line 113, in call
return self.run(args, kwargs)[1]
File “/usr/local/lib/python3.7/site-packages/plumbum/commands/base.py”, line 252, in run
return p.run()
File “/usr/local/lib/python3.7/site-packages/plumbum/commands/base.py”, line 215, in runner
return run_proc(p, retcode, timeout)
File “/usr/local/lib/python3.7/site-packages/plumbum/commands/processes.py”, line 304, in run_proc
return _check_process(proc, retcode, timeout, stdout, stderr)
File “/usr/local/lib/python3.7/site-packages/plumbum/commands/processes.py”, line 17, in _check_process
proc.verify(retcode, timeout, stdout, stderr)
File “/usr/local/lib/python3.7/site-packages/plumbum/machines/base.py”, line 28, in verify
getattr(self, “argv”, None), self.returncode, stdout, stderr
plumbum.commands.processes.ProcessExecutionError: Unexpected exit code: 1
Command line: | /usr/bin/git push --follow-tags --set-upstream origin main
Stderr: | remote: error: GH006: Protected branch update failed for refs/heads/main.
| remote: error: At least 1 approving review is required by reviewers with write access.
| To https://github.com//hexo-circle-of-friends
| ! [remote rejected] main -> main (protected branch hook declined)
| error: failed to push some refs to 'https://github.com/**/hexo-circle-of-friends’
不知道怎么设置,只能把所有分支保护关闭才能正常运行