Partial actions and subshifts