conditional-paths-action API Documentation - v1.0.0
    Preparing search index...

    Function getCurrentRef

    • Gets the current git reference (branch, tag, or commit SHA).

      Attempts to determine the current ref in this order:

      1. Current branch name
      2. Exact tag name (if HEAD points to a tag)
      3. Current commit SHA

      Returns Promise<string>

      Current git reference as a string

      When git commands fail