Skip to content

Commit

Permalink
Updating Build (re #2, #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Jul 20, 2023
1 parent e3a7e26 commit 5bc3607
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Build/Posh.HelpOut.ps1
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions GitHub/Jobs/BuildPosh.psd1
Original file line number Diff line number Diff line change
@@ -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'
}
)
}

0 comments on commit 5bc3607

Please sign in to comment.