Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Oct 12, 2025

Description

This pull request reorganizes the GitHub Actions workflow, improves input handling and environment variable usage in the action, and enhances the summary output for PowerShell module documentation commands. The most notable changes are the restructuring of workflow jobs to support different summary behaviors, improved input/environment variable consistency, and more detailed step summaries.

GitHub Actions workflow improvements:

  • The .github/workflows/Action-Test.yml workflow now separates artifact upload into its own UploadArtifact job, and introduces two test jobs: ActionTestDefault (without always showing summary) and ActionTestWithSummary (always shows summary on success). This allows testing both behaviors and ensures artifacts are available before running tests. [1] [2] [3]

Action input and environment variable handling:

  • The action.yml file reorders the inputs section for clarity, and environment variables passed to scripts now use a consistent DOCUMENT_PSMODULE_INPUT_* naming scheme instead of the previous GITHUB_ACTION_INPUT_*. [1] [2]
  • The scripts/main.ps1 script now accepts Name and ShowSummaryOnSuccess as parameters, defaulting to the new environment variable names, and updates how these values are handled and passed to helper scripts. [1] [2] [3]

Summary output enhancements:

  • The Build-PSModuleDocumentation.ps1 script changes the summary section to use collapsible <details> blocks for failed and succeeded commands, making the output clearer and easier to navigate in GitHub step summaries. [1] [2]

Copilot AI review requested due to automatic review settings October 12, 2025 16:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issue #229 by modifying the test workflow to verify that the step summary is empty when ShowSummaryOnSuccess is not explicitly enabled. The change removes the ShowSummaryOnSuccess: true parameter and adds a validation step to confirm the summary remains empty.

  • Removed ShowSummaryOnSuccess: true parameter from the action configuration
  • Added a new validation step to check that GITHUB_STEP_SUMMARY is empty

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copilot AI review requested due to automatic review settings October 12, 2025 16:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copilot AI review requested due to automatic review settings October 12, 2025 17:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copilot AI review requested due to automatic review settings October 12, 2025 17:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copilot AI review requested due to automatic review settings October 12, 2025 17:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@MariusStorhaug MariusStorhaug changed the title 🩹 [Patch]: 🩹 [Patch]: Group successful and failed doc generation Oct 12, 2025
@MariusStorhaug MariusStorhaug self-assigned this Oct 12, 2025
@MariusStorhaug MariusStorhaug merged commit da2a725 into main Oct 12, 2025
20 checks passed
@MariusStorhaug MariusStorhaug deleted the ShowSummaryOnSuccess branch October 12, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🩹 [Patch]: Document-PSModule - Group successful and failed doc generation

2 participants