Actually fail if staleness fail

PiperOrigin-RevId: 610833812
pull/15984/head
Mike Kruskal 9 months ago
parent 971fbf639b
commit 868882552d
  1. 3
      .github/workflows/staleness_check.yml

@ -52,8 +52,7 @@ jobs:
run: | run: |
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