From c0f99287c843eb4d8412a8e25b84caff69ef79b3 Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Fri, 23 Jul 2021 16:11:26 +0930 Subject: [PATCH] Create directory is always relative to current directory Fixes #27 --- action.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.ps1 b/action.ps1 index 4753926..bacd148 100644 --- a/action.ps1 +++ b/action.ps1 @@ -42,7 +42,8 @@ Write-ActionInfo "Resolved tmpDir as [$tmpDir]" $test_results_path = $inputs.test_results_path $test_report_path = Join-Path $tmpDir test-results.md -New-Item -Name $tmpDir -ItemType Directory -Force -ErrorAction Ignore +# Can't use full path on Linux, New-Item is always relative to current directory +New-Item -Name '_TMP' -ItemType Directory -Force -ErrorAction Ignore function Build-MarkdownReport { $script:report_name = $inputs.report_name