Scaling symmetries, conservation laws and action principles in one-dimensional gas dynamics