From 88c53491968289d0626ec2f7fa6e3d00028eb629 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:35:55 -0400 Subject: [PATCH] Revert "Rm additional file check for scheduled tests (#11192)" (#11297) This reverts commit ff90bb59bf78a85bf561e03385e40ca855745ddb. Requires #11296 to merge first. --- .github/workflows/scheduled_test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.yml index af82f16b5ec..d59ad3c2e3f 100644 --- a/.github/workflows/scheduled_test.yml +++ b/.github/workflows/scheduled_test.yml @@ -63,3 +63,15 @@ jobs: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} run: | make scheduled_tests + + - name: Ensure the tests did not create any additional files + shell: bash + run: | + set -eu + + STATUS="$(git status)" + echo "$STATUS" + + # grep will exit non-zero if the target message isn't found, + # and `set -e` above will cause the step to fail. + echo "$STATUS" | grep 'nothing to commit, working tree clean'