Skip to content

Commit

Permalink
Actually fail if staleness fail
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 610833812
  • Loading branch information
mkruskal-google committed Feb 27, 2024
1 parent b25013b commit 108bec3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/staleness_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 108bec3

Please sign in to comment.