From 2417e93da687f960c1fb777c35b31e5998739972 Mon Sep 17 00:00:00 2001 From: Simeon Wong Date: Wed, 21 Aug 2024 09:37:50 -0400 Subject: [PATCH] clean output files from folder before running assignment script --- .github/workflows/autograder.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/autograder.yml b/.github/workflows/autograder.yml index b715e6d0..eb563788 100644 --- a/.github/workflows/autograder.yml +++ b/.github/workflows/autograder.yml @@ -18,6 +18,9 @@ jobs: run: | python -m pip install --upgrade pip pip install -r 03_instructional_team/autograder/requirements.txt + - name: Clean assignment folder + run: | + find 02_activities/assignments -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \; - name: Run assignment script run: | bash -c "bash assignment.sh 2>&1 | tee $GITHUB_WORKSPACE/03_instructional_team/autograder/output.txt"