Skip to content

Commit

Permalink
[CI] Do not pull latest mutes from main when not for PR (#120119) (#1…
Browse files Browse the repository at this point in the history
…20180)

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.
  • Loading branch information
jozala authored Jan 17, 2025
1 parent 4b72f44 commit b8aa756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .buildkite/scripts/get-latest-test-mutes.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

Expand Down

0 comments on commit b8aa756

Please sign in to comment.