Skip to content

Commit dfc6375

Browse files
Update action.yml and main.ps1 to clarify module path input and enhance path resolution for improved reliability
1 parent 71cb072 commit dfc6375

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ inputs:
1010
description: Name of the module to process.
1111
required: false
1212
Path:
13-
description: Path to the folder where the modules are located.
13+
description: The path to the root of the repo.
1414
required: false
15-
default: src
15+
default: ${{ github.workspace }}
1616
Debug:
1717
description: Enable debug output.
1818
required: false

scripts/main.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LogGroup 'Loading inputs' {
1919
$moduleName = ($env:GITHUB_ACTION_INPUT_Name | IsNullOrEmpty) ? $env:GITHUB_REPOSITORY_NAME : $env:GITHUB_ACTION_INPUT_Name
2020
Write-Host "Module name: [$moduleName]"
2121

22-
$moduleSourceFolderPath = Join-Path -Path $env:GITHUB_ACTION_INPUT_Path 'src'
22+
$moduleSourceFolderPath = Resolve-Path -Path "$env:GITHUB_ACTION_INPUT_Path/src"
2323
if (-not (Test-Path -Path $moduleSourceFolderPath)) {
2424
throw "Module path [$moduleSourceFolderPath] does not exist."
2525
}

0 commit comments

Comments
 (0)