Skip to content

Commit b62a414

Browse files
committed
Added html support
1 parent 0f76136 commit b62a414

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inputs:
2121
description: 'Target branch for comparison'
2222
required: true
2323
output_format:
24-
description: 'Output format for documentation files (.md or .rst)'
24+
description: 'Output format for documentation files (.md, .rst, or .html)'
2525
required: false
2626
default: '.md'
2727

@@ -311,8 +311,8 @@ runs:
311311
OUTPUT_FORMAT="${{ inputs.output_format }}"
312312
313313
# Validate output format
314-
if [[ "$OUTPUT_FORMAT" != ".md" && "$OUTPUT_FORMAT" != ".rst" ]]; then
315-
echo "Error: Invalid output format '$OUTPUT_FORMAT'. Must be either '.md' or '.rst'"
314+
if [[ "$OUTPUT_FORMAT" != ".md" && "$OUTPUT_FORMAT" != ".rst" && "$OUTPUT_FORMAT" != ".html" ]]; then
315+
echo "Error: Invalid output format '$OUTPUT_FORMAT'. Must be either '.md', '.rst', or '.html'"
316316
exit 1
317317
fi
318318

0 commit comments

Comments
 (0)