diff --git a/.github/workflows/push_to_overleaf.yml b/.github/workflows/test_run_push_to_overleaf.yml similarity index 91% rename from .github/workflows/push_to_overleaf.yml rename to .github/workflows/test_run_push_to_overleaf.yml index ab650c6..4434167 100644 --- a/.github/workflows/push_to_overleaf.yml +++ b/.github/workflows/test_run_push_to_overleaf.yml @@ -40,6 +40,13 @@ jobs: python3 labproject/run.py cd .. cp labproject/plots/* overleaf/figures/ + - name: Check for Errors + run: | + if [ $? -ne 0 ]; then + echo "One or more scripts failed." + exit 1 + fi + - name: Commit and push changes to Overleaf run: | cd ${{ github.workspace }} @@ -52,4 +59,4 @@ jobs: else git commit -m "Update figures automatically" git push - fi \ No newline at end of file + fi