Skip to content

Commit

Permalink
Error on staleness failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruskal-google committed Nov 2, 2023
1 parent 1155c80 commit 1577c30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/staleness_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
# tests along with user changes. Any stale files will be automatically fixed in a follow-up
# commit.
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"
Expand Down

0 comments on commit 1577c30

Please sign in to comment.