Skip to content

Commit 9e0b792

Browse files
authored
[CI] Do not pull latest mutes from main when not for PR (#120119) (#120178)
In case when Buildkite pipeline do not run for the PR the env `BUILDKITE_PULL_REQUEST` is set to "false". In this case we do not want to override the `muted-tests.yml` file with version from main.
1 parent 10100a9 commit 9e0b792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/scripts/get-latest-test-mutes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if [[ ! "${BUILDKITE_PULL_REQUEST:-}" || "${BUILDKITE_AGENT_META_DATA_PROVIDER:-}" == "k8s" ]]; then
3+
if [[ "${BUILDKITE_PULL_REQUEST:-false}" == "false" || "${BUILDKITE_AGENT_META_DATA_PROVIDER:-}" == "k8s" ]]; then
44
exit 0
55
fi
66

0 commit comments

Comments
 (0)