Pedestal dynamics across low to high confinement regime in the HL-2A tokamak