v1.0.5
🩹 [Patch]: Enhance error handling and summary reporting in documentation generation (#22)
Description
This pull request enhances the error handling and reporting for PowerShell module documentation generation. Now, when documentation generation fails for one or more commands, the script collects detailed error information, summarizes the failures in a GitHub Actions step summary, and fails the build with a clear message.
Improvements to error handling and reporting:
- Introduced a
$failedCommandscollection to track commands that fail documentation generation, capturing their names and error details. - After processing all commands, if any failures occurred, the script outputs a detailed summary to the console and to the
$env:GITHUB_STEP_SUMMARYfile, including a markdown table of failed commands and their errors, and then fails the build with an appropriate exit code.