@@ -23,7 +23,6 @@ if [[ "$1" == "individual-shell-tools" ]]; then
2323 else
2424 if [[ " $exercise " == * " stretch" * ]]; then
2525 # echo "Stretch task $directory$exercise failing, you can ignore this if you did not attempt. If you didnt, please have the volunteer check this."
26- echo " " >> ../../testoutput.txt
2726 total=$(( $total - 1 ))
2827 else
2928 echo " Failed $directory$exercise , please either attempt again or have the volunteer check this." >> ../../testoutput.txt
@@ -35,8 +34,14 @@ if [[ "$1" == "individual-shell-tools" ]]; then
3534 cd ..
3635 rm test.tmp
3736 echo " You passed $pass /$total tasks." >> testoutput.txt
37+ if [ -v GITHUB_OUTPUT ]; then
38+ echo " attempted=y" >> " $GITHUB_OUTPUT "
39+ fi
3840 if [ $pass -ge $total ]; then
3941 echo " This task is complete!" >> testoutput.txt
42+ if [ -v GITHUB_OUTPUT ]; then
43+ echo " complete=y" >> " $GITHUB_OUTPUT "
44+ fi
4045 fi
4146 cat testoutput.txt
4247elif [[ " $1 " == " shell-pipelines" ]]; then
@@ -60,8 +65,14 @@ elif [[ "$1" == "shell-pipelines" ]]; then
6065 cd ..
6166 rm test.tmp
6267 echo " You passed $pass /$total tasks." >> testoutput.txt
68+ if [ -v GITHUB_OUTPUT ]; then
69+ echo " attempted=y" >> " $GITHUB_OUTPUT "
70+ fi
6371 if [ $pass -eq $total ]; then
6472 echo " This task is complete!" >> testoutput.txt
73+ if [ -v GITHUB_OUTPUT ]; then
74+ echo " complete=y" >> " $GITHUB_OUTPUT "
75+ fi
6576 fi
6677 cat testoutput.txt
6778elif [[ " $1 " == " jq" ]]; then
@@ -81,8 +92,14 @@ elif [[ "$1" == "jq" ]]; then
8192 cd ..
8293 rm test.tmp
8394 echo " You passed $pass /$total tasks." >> testoutput.txt
95+ if [ -v GITHUB_OUTPUT ]; then
96+ echo " attempted=y" >> " $GITHUB_OUTPUT "
97+ fi
8498 if [ $pass -eq $total ]; then
8599 echo " This task is complete!" >> testoutput.txt
100+ if [ -v GITHUB_OUTPUT ]; then
101+ echo " complete=y" >> " $GITHUB_OUTPUT "
102+ fi
86103 fi
87104 cat testoutput.txt
88105else
0 commit comments