Skip to content

Commit 49257cc

Browse files
Refactor action.yml to simplify environment variable retrieval for test paths
1 parent 55f8a21 commit 49257cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ runs:
103103
uses: PSModule/Invoke-Pester@v4
104104
id: test
105105
env:
106-
LocalTestPath: ${{ fromJson(steps.paths.outputs.result).LocalTestPath }}
107-
WorkingDirectory: ${{ fromJson(steps.paths.outputs.result).WorkingDirectory }}
106+
LocalTestPath: ${{ steps.paths.outputs.LocalTestPath }}
107+
WorkingDirectory: ${{ inputs.WorkingDirectory }}
108108
with:
109109
Debug: ${{ inputs.Debug }}
110110
Prerelease: ${{ inputs.Prerelease }}
@@ -113,5 +113,5 @@ runs:
113113
WorkingDirectory: ${{ inputs.WorkingDirectory }}
114114
TestResult_TestSuiteName: ${{ inputs.Settings }}-${{ runner.os }}
115115
CodeCoverage_CoveragePercentTarget: 0
116-
Path: ${{ fromJson(steps.paths.outputs.result).TestPath }}
117-
Run_Path: ${{ fromJson(steps.paths.outputs.result).CodePath }}
116+
Path: ${{ steps.paths.outputs.TestPath }}
117+
Run_Path: ${{ steps.paths.outputs.CodePath }}

0 commit comments

Comments
 (0)