Updated the logic to exclude anything that doesn't have deploy in it