0

我正在尝试 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"
}

尝试引用以前的提交而不是 master (actions/bin/filter@18d4c9c),但是我仍然得到同样的错误。

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

谢谢!

4

1 回答 1

0

在朋友的帮助下,

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

[GitHub 的推送事件][1].issue.labels[].name在其有效负载中没有过滤器所需的内容 ( https://github.com/actions/bin/blob/master/filter/bin/label#L5 )

于 2019-01-14T08:01:49.397 回答