Skip to content

🩹 [Patch]: Remove reliance on GitHub #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 2, 2025
Merged

🩹 [Patch]: Remove reliance on GitHub #51

merged 4 commits into from
Jun 2, 2025

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jun 2, 2025

Description

This pull request introduces several updates to streamline the PowerShell module publishing process and enhance logging functionality. Key changes include replacing LogGroup with Set-GitHubLogGroup for improved GitHub-specific logging, simplifying the action.yml configuration, and refining the Publish-PSModule script to focus solely on publishing to the PowerShell Gallery.

Updates to action.yml Configuration:

  • Switched from using GitHub-Script to running the script directly with pwsh shell, enabling better control over the execution environment. ([[1]](https://github.com/PSModule/Publish-PSModule/pull/51/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6L86-R87), [[2]](https://github.com/PSModule/Publish-PSModule/pull/51/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6L102-R103))

Enhancements to Logging:

  • Replaced all instances of LogGroup with Set-GitHubLogGroup in scripts/helpers/Publish-PSModule.ps1 and scripts/main.ps1 for improved GitHub-specific structured logging. ([[1]](https://github.com/PSModule/Publish-PSModule/pull/51/files#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9L36-R36), [[2]](https://github.com/PSModule/Publish-PSModule/pull/51/files#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9L62-R73), [[3]](https://github.com/PSModule/Publish-PSModule/pull/51/files#diff-dc2e5a659836b1b73abb03421c567f5018c2755677c4a0aa764cb26117b68011L21-R28), and others)

Refinements to Publish-PSModule Script:

  • Updated the .DESCRIPTION and .SYNOPSIS sections to remove references to GitHub Pages, focusing exclusively on publishing modules to the PowerShell Gallery. ([scripts/helpers/Publish-PSModule.ps1L4-R7](https://github.com/PSModule/Publish-PSModule/pull/51/files#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9L4-R7))
  • Removed redundant GitHub Pages functionality, simplifying the script logic. ([scripts/helpers/Publish-PSModule.ps1L4-R7](https://github.com/PSModule/Publish-PSModule/pull/51/files#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9L4-R7))

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@Copilot Copilot AI review requested due to automatic review settings June 2, 2025 00:47
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner June 2, 2025 00:47
Copy link

@Copilot 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 replaces generic LogGroup calls with Set-GitHubLogGroup, streamlines the GitHub Action step to invoke PowerShell directly, and refines the Publish-PSModule script’s metadata by removing GitHub Pages references.

  • Replaced all LogGroup invocations in main.ps1 and Publish-PSModule.ps1 with Set-GitHubLogGroup
  • Simplified action.yml to use pwsh and direct script invocation instead of PSModule/GitHub-Script
  • Updated module metadata comments to focus on PowerShell Gallery publishing

Reviewed Changes

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

File Description
scripts/main.ps1 Swapped LogGroup for Set-GitHubLogGroup around input/loading
scripts/helpers/Publish-PSModule.ps1 Adjusted .SYNOPSIS/.DESCRIPTION and replaced logging calls
action.yml Removed uses: step, added shell: pwsh, working-directory, and run:
Comments suppressed due to low confidence (2)

action.yml:88

  • After replacing uses: with run:, ensure that all previously mapped inputs (Debug, Prerelease, Verbose, Version, VersionPrefix, WhatIf, etc.) are still provided via environment variables, since the with: block was removed.
env:

scripts/helpers/Publish-PSModule.ps1:99

  • [nitpick] Log group titles use inconsistent capitalization ('details' vs 'Labels'). Consider standardizing on a single casing style (e.g., title case) for all headings.
Set-GitHubLogGroup 'Pull request - details' {

@MariusStorhaug MariusStorhaug self-assigned this Jun 2, 2025
@MariusStorhaug MariusStorhaug merged commit 9cf3a80 into main Jun 2, 2025
13 checks passed
@MariusStorhaug MariusStorhaug deleted the noGitHub branch June 2, 2025 00: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.

1 participant