Actually fail if staleness fail

PiperOrigin-RevId: 610833812
pull/15983/head
Mike Kruskal 9 months ago
parent b25013b11a
commit 108bec33cd
  1. 3
      .github/workflows/staleness_check.yml

@ -56,8 +56,7 @@ jobs:
bash: > bash: >
set -ex; set -ex;
if [[ -z $COMMIT_TRIGGERED_RUN || -z $MAIN_RUN ]]; then if [[ -z $COMMIT_TRIGGERED_RUN || -z $MAIN_RUN ]]; then
bazel query 'attr(tags, "staleness_test", //...)' | xargs bazel test $BAZEL_FLAGS || bazel query 'attr(tags, "staleness_test", //...)' | xargs bazel test $BAZEL_FLAGS;
echo "Please run ./regenerate_stale_files.sh to regenerate stale files";
else else
bazel query 'attr(tags, "staleness_test", //...)'; bazel query 'attr(tags, "staleness_test", //...)';
fi fi

Loading…
Cancel
Save