[英]Github Action fails to execute shell command
I am trying to run this simple action:我正在尝试运行这个简单的操作:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: echoHello
run: echo "hello"
And I get that there was an error, and this message:我知道有一个错误,这条消息:
shell: /usr/bin/bash -e {0}
What is the problem here?这里有什么问题? There is literally anything else in the log.日志中实际上还有其他任何内容。
I also tried with the Debug
function:我还尝试了Debug
function:
shell: /usr/bin/bash -e {0}
##[debug]/usr/bin/bash -e /home/runner/work/_temp/9fc627b8-0668-4ffa-90b3-fb7b1de18b60.sh
Any ideas?有任何想法吗? Could it be a permissions issue?会不会是权限问题?
Found the answer.找到了答案。 It turns out that you can not pass a repository secret.事实证明,您无法传递存储库机密。 What is used instead is a "special" secret called secrets.GITHUB_TOKEN
that is used to authenticate on Actions.取而代之的是一个名为secrets.GITHUB_TOKEN
的“特殊”秘密,用于对 Actions 进行身份验证。
I wish they had logged an error there.我希望他们在那里记录了一个错误。 See the docs 查看文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.