moving the goalposts

Definition
Football metaphor to describe the less than scrupulous manoeuvre in a debate when one side will, without notice, change the goal, criterion or premise of the issue being discussed so as to help them salvage their otherwise untenable position.