Skip to content
Compare
Choose a tag to compare
@jeffpatton1971 jeffpatton1971 released this 18 Jul 18:27

This Github Action automates the creation of a PowerShell module by aggregating function scripts from specified directories into a single module file (.psm1). It includes setup for variables, handles import folders, processes the function scripts, and creates the final module file. Debug logging and error handling are also included to provide detailed output and manage any issues during execution.

Features:

  • Iterates over specified import directories.
  • Collects and reads function scripts (.ps1 files), excluding test scripts.
  • Aggregates the contents of the function scripts into a single module file using a StringBuilder.
  • Writes the aggregated contents from the StringBuilder to the .psm1 module file.

This action is useful for automating the creation of a PowerShell module by collecting and consolidating function scripts from multiple directories into a single module file.

Full Changelog: https://github.com/mod-posh/CreatePowerShellModule/commits/v0.0.1.0