A dictionary containing action details. Expected keys are: - “name” (str): The name of the action. - “description” (str): A brief description of the action.
required
Returns
Name
Type
Description
str
A markdown formatted string with the action name in bold and code format, followed by the description.
A dictionary containing action details. Expected keys are: - “name” (str): The name of the action. - “description” (str): A brief description of the action.
required
Returns
Name
Type
Description
str
A formatted markdown string with the action’s name as a header and the description as the content.
action_markdown_io
docs.action_markdown_io(action_dict)
Generates a markdown string documenting the inputs and outputs of a given action.
A dictionary containing the action’s inputs and outputs. The dictionary should have the following structure: { “inputs”: { “input_name”: { “description”: “Description of the input”, “required”: bool, “default”: “default_value” }, … }, “outputs”: { “output_name”: { “description”: “Description of the output” }, … } }
required
Returns
Name
Type
Description
str
A markdown formatted string documenting the inputs and outputs of the action.
The tag of the release (default: None). Set this when running this code from a github release event. Only set this if the tag is currently checked out.
If True, the version string must match the full semantic versioning pattern. Otherwise, a relaxed format with only the major and minor components is allowed.
True
Returns
Name
Type
Description
tuple
A tuple containing: - docs_version (str): The major and minor version of the latest release. - docs_alias (str): The alias for the documentation version, e.g., “latest”.
Set version and alias in GitHub environment variables for docs website action.
This function retrieves the documentation version and alias using get_docs_version and sets them as environment variables in the GitHub Actions environment.