我试图找出一种仅在将 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 不匹配