A thermally actuated superconducting flux pump