def register_from_pack(self, pack_dir):
        """
        Register all the actions from the provided pack.

        :return: Number of actions registered, Number of actions overridden
        :rtype: ``tuple``
        """
        pack_dir = pack_dir[:-1] if pack_dir.endswith("/") else pack_dir
        _, pack = os.path.split(pack_dir)
        actions_dir = self._pack_loader.get_content_from_pack(
            pack_dir=pack_dir, content_type="actions"
        )

        # Register pack first
        self.register_pack(pack_name=pack, pack_dir=pack_dir)

        registered_count = 0
        overridden_count = 0
        if not actions_dir:
            return registered_count

        LOG.debug("Registering actions from pack %s:, dir: %s", pack, actions_dir)

        try:
            actions = self._get_actions_from_pack(actions_dir=actions_dir)
            registered_count, overridden_count = self._register_actions_from_pack(
                pack=pack, actions=actions
            )
        except Exception as e:
            if self._fail_on_failure:
                raise e

            LOG.exception("Failed registering all actions from pack: %s", actions_dir)

        return registered_count, overridden_count

        Register all the actions from the provided pack.

        :return: Number of actions registered, Number of actions overridden
        :rtype: ``tuple``
        
st2common/st2common/bootstrap/actionsregistrar.py