From 108bec33cda5b8ce080ff88854bf15866f2fca68 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Tue, 27 Feb 2024 12:15:56 -0800 Subject: [PATCH] Actually fail if staleness fail PiperOrigin-RevId: 610833812 --- .github/workflows/staleness_check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/staleness_check.yml b/.github/workflows/staleness_check.yml index 77a5e21f2c..5e39fa4c50 100644 --- a/.github/workflows/staleness_check.yml +++ b/.github/workflows/staleness_check.yml @@ -56,8 +56,7 @@ jobs: 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"; + bazel query 'attr(tags, "staleness_test", //...)' | xargs bazel test $BAZEL_FLAGS; else bazel query 'attr(tags, "staleness_test", //...)'; fi