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: |
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

Loading…
Cancel
Save