From 5bc36074457f5c95fb395e53f4db693bcc835b6e Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 19 Jul 2023 23:18:38 -0700 Subject: [PATCH] Updating Build (re #2, #9) --- Build/Posh.HelpOut.ps1 | 16 ++++++++++++++++ GitHub/Jobs/BuildPosh.psd1 | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 Build/Posh.HelpOut.ps1 create mode 100644 GitHub/Jobs/BuildPosh.psd1 diff --git a/Build/Posh.HelpOut.ps1 b/Build/Posh.HelpOut.ps1 new file mode 100644 index 0000000..44c7ab4 --- /dev/null +++ b/Build/Posh.HelpOut.ps1 @@ -0,0 +1,16 @@ +$EZOutLoaded = Get-Module EZOut +Push-Location ($PSScriptRoot | Split-Path) +if (-not $EZOutLoaded) { + $EZOutLoaded = Get-ChildItem -Recurse -Filter "*.psd1" | + Where-Object Name -eq 'EZOut.psd1' | + Import-Module -Name { $_.FullName } -Force -PassThru +} +if ($EZOutLoaded) { + "::notice title=ModuleLoaded::EZOut Loaded" | Out-Host +} else { + "::error:: EZOut not loaded" |Out-Host +} +if ($EZOutLoaded) { + Save-MarkdownHelp -Module $EZOutLoaded.Name -PassThru -SkipCommandType Alias +} +Pop-Location \ No newline at end of file diff --git a/GitHub/Jobs/BuildPosh.psd1 b/GitHub/Jobs/BuildPosh.psd1 new file mode 100644 index 0000000..5894b81 --- /dev/null +++ b/GitHub/Jobs/BuildPosh.psd1 @@ -0,0 +1,27 @@ +@{ + "runs-on" = "ubuntu-latest" + if = '${{ success() }}' + steps = @( + @{ + name = 'Check out repository' + uses = 'actions/checkout@v2' + }, + @{ + name = 'Use PSSVG Action' + uses = 'StartAutomating/PSSVG@main' + id = 'PSSVG' + } + 'RunPipeScript', + @{ + name = 'Run EZOut (on master)' + uses = 'StartAutomating/EZOut@master' + id = 'EZOutMaster' + } + 'RunHelpOut', + @{ + name = 'GitLogger' + uses = 'GitLogging/GitLoggerAction@main' + id = 'GitLogger' + } + ) +} \ No newline at end of file