我正在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),但是我仍然遇到相同的错误。
我的存储库也是私有,不确定是否与它有关。
谢谢!
答案 0 :(得分:0)
在朋友的帮助下,
标签过滤器不适用于 push 事件:
[GitHub的Push事件] [1]的有效负载中没有.issue.labels[].name
,这是过滤器(https://github.com/actions/bin/blob/master/filter/bin/label#L5)所需要的