【发布时间】:2019-09-17 06:49:29
【问题描述】:
我试图找出一种方法,仅当 pr 打开到 master 时才运行 GitHub 工作流,即更改正在进入 master。
到此为止
workflow "Install Yarn Dependencies" {
on = "pull_request"
resolves = ["Install"]
}
action "Is Master Branch" {
uses = "actions/bin/filter@master"
args = "branch master"
}
action "Install" {
needs = "Is Master Branch"
uses = "nuxt/actions-yarn@master"
args = "install"
}
当我打开合并development 分支到master 分支的拉取请求时,我的Install 操作没有运行,因为Is Master Branch 返回
refs/heads/development 与 refs/heads/master 不匹配
【问题讨论】:
标签: github github-actions