GitHub操作:过滤器返回“ jq:错误无法遍历null(空)”

时间:2019-01-14 06:40:50

标签: github github-actions

我正在GitHub Actions中尝试过滤器,但是它返回此错误:

Digest: sha256:f747d8611fb26448f06a4245e252204859df6c7f81f04c248497c3e68c7740dd
Status: Downloaded newer image for gcr.io/github-actions-images/action-runner:latest
jq: error (at /github/workflow/event.json:1): Cannot iterate over null (null)

这是我的main.workflow:

workflow "New workflow" {
  on = "push"
  resolves = ["label-filter"]
}

 action "label-filter" {
  uses = "actions/bin/filter@master"
  args = "label ready"
}

 action "./github/testdeploy" {
  uses = "./github/testdeploy"
  needs = "label-filter"
}

尝试引用先前的提交而不是主提交(actions / bin / filter @ 18d4c9c),但是我仍然遇到相同的错误。

我的存储库也是私有,不确定是否与它有关。

谢谢!

1 个答案:

答案 0 :(得分:0)

在朋友的帮助下,

标签过滤器不适用于 push 事件:

[GitHub的Push事件] [1]的有效负载中没有.issue.labels[].name,这是过滤器(https://github.com/actions/bin/blob/master/filter/bin/label#L5)所需要的