A junior school in Batley has taken part in a community Digathon by digging, washing and baking potatoes together.