I would like to choose between two steps, depending on whether the GitHub pull request has a particular label. Something like this:
steps: - command: "echo normal" if: !(build.pull_request.labels includes "experimental") - command: "echo experimental" if: build.pull_request.labels includes "experimental"
However this doesn’t seem to work. What I really want is a
BUILDKITE_PULL_REQUEST_LABELS environment variable so I can change behavior in the
command, but that isn’t available, so I’m trying to pick between two jobs using