Skip to content

Commit e662bfa

Browse files
committed
fix: Import module before using its cmdlets
1 parent 1cc5f5b commit e662bfa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
$ErrorActionPreference = 'Stop'
44

5+
Import-Module $PSScriptRoot/lib/GitHubActionsCore
6+
57
# read inputs, set output
68
$stagingPath = Get-ActionInput staging-path -Required
79
$null = New-Item $stagingPath -ItemType Directory -ErrorAction:Ignore
@@ -13,8 +15,6 @@ if ((Get-ChildItem -Recurse -Include *.cat, *.gst -File).Length -eq 0) {
1315
exit 0
1416
}
1517

16-
Import-Module $PSScriptRoot/lib/GitHubActionsCore
17-
1818
function PrintAndInvoke{
1919
param($command)
2020
Write-Host $command -ForegroundColor Cyan

0 commit comments

Comments
 (0)