diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index e09fee97..6e72585e 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -14,13 +14,15 @@ jobs: - uses: actions/setup-python@v5 with: cache: 'pip' - - run: | + - name: Run Tests and Validate JSON + run: | pip install -r requirements.txt python tests/rws_tests.py python check_sites.py -i related_website_sets.JSON --with_diff --strict_formatting > results.txt cat results.txt export VALIDATION_RESULTS=$(cat results.txt) - - if: ${{ env.VALIDATION_RESULTS == 'success' }} + - name: Record Failure + if: ${{ env.VALIDATION_RESULTS == 'success' }} uses: actions/github-script@v3 with: script: core.setFailed('This run has failed.')