Hi,
I’m trying to have a step in triggered child pipeline being dependent on the PR label.
The child pipeline is triggered by a trigger
step and as per the documentation, the branch and pull request environment variables are passed through:
- trigger: "web-tests"
label: ":hammer: Test"
async: true
build:
message: "${BUILDKITE_MESSAGE}"
commit: "${BUILDKITE_COMMIT}"
branch: "${BUILDKITE_BRANCH}"
env:
BUILDKITE_PULL_REQUEST: "${BUILDKITE_PULL_REQUEST}"
BUILDKITE_PULL_REQUEST_BASE_BRANCH: "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
BUILDKITE_PULL_REQUEST_REPO: "${BUILDKITE_PULL_REQUEST_REPO}"
However, this doesn’t seem to work with the build.pull_request
variables on the child pipeline.
I’ve tried the following expressions:
build.pull_request.labels includes "my-label"
build.pull_request.draft
and they both don’t work.
Am I missing something?