diff --git a/.github/workflows/staleness_check.yml b/.github/workflows/staleness_check.yml index 77a5e21f2cc8c..347ce27ffc480 100644 --- a/.github/workflows/staleness_check.yml +++ b/.github/workflows/staleness_check.yml @@ -55,9 +55,9 @@ jobs: bazel-cache: staleness bash: > set -ex; - if [[ -z $COMMIT_TRIGGERED_RUN || -z $MAIN_RUN ]]; then - bazel query 'attr(tags, "staleness_test", //...)' | xargs bazel test $BAZEL_FLAGS || echo "Please run ./regenerate_stale_files.sh to regenerate stale files"; + if [[ -z $COMMIT_TRIGGERED_RUN || -z $MAIN_RUN ]]; then + bazel query 'attr(tags, "staleness_test", //...)' | xargs bazel test $BAZEL_FLAGS; else bazel query 'attr(tags, "staleness_test", //...)'; fi