Skip to content

Commit 7251639

Browse files
committed
Fix mapping arg errors from missing D: drive.
This maps the entire github directory from D:/a to C:/a. Which means that we also rewrite all the env vars to refer to the C drive.
1 parent bc57ed2 commit 7251639

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,15 @@ runs:
9393
shell: powershell
9494
- name: Run
9595
run: >-
96-
$eventPath = Split-Path -Path "${env:GITHUB_EVENT_PATH}" -Parent;
96+
$runnerPathSource = Split-Path -Path "${env:RUNNER_TEMP}" -Parent;
97+
$runnerPathTarget = $runnerPathSource.replace('D:', 'C:')
9798
9899
docker run
99100
${{ steps.settings.outputs.default_environment_variables }}
100101
${{ steps.settings.outputs.extra_args }}
101102
--rm
102103
--memory=${{ inputs.memory }}
103-
-v ${eventPath}:${eventPath}
104+
-v ${runnerPathSource}:${runnerPathTarget}
104105
-v ${{ steps.settings.outputs.workspace_path }}:${{ steps.settings.outputs.mapping_path }}
105106
-w ${{ steps.settings.outputs.work_path }}
106107
${{ inputs.image }}

src/set_output_variable.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ $trimArg = "$invovationPath" + "\trim_arg.ps1";
1010

1111
$trimmed_name = & $trimArg -arg $name;
1212
$trimmed_val = & $trimArg -arg $val;
13+
$trimmed_val = $trimmed_val.replace('D:', 'C:');
1314

1415
function toGitHub {
1516
param(

0 commit comments

Comments
 (0)