Skip to content

Commit eb2337b

Browse files
committed
Access github.workspace via inputs
1 parent 1701f7e commit eb2337b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

action.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ inputs:
3434
description: 'If true, only check if the test scripts are valid and skip test execution'
3535
default: "false"
3636
required: false
37+
github-workspace:
38+
description: 'The path to the GitHub workspace'
39+
default: ${{ github.workspace }}
40+
required: false
3741

3842
runs:
3943
using: node20

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34766,7 +34766,7 @@ function cleanScriptPath(scriptPath) {
3476634766
* */
3476734767
const baseDir = process.env['GITHUB_WORKSPACE'] || '';
3476834768
const cleanedScriptPath = scriptPath.replace(baseDir, '');
34769-
return scriptPath.trim();
34769+
return cleanedScriptPath.trim();
3477034770
}
3477134771
exports.cleanScriptPath = cleanScriptPath;
3477234772

src/k6helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ export function cleanScriptPath(scriptPath: string): string {
5858
const baseDir = process.env['GITHUB_WORKSPACE'] || '';
5959
const cleanedScriptPath = scriptPath.replace(baseDir, '');
6060

61-
return scriptPath.trim();
61+
return cleanedScriptPath.trim();
6262

6363
}

0 commit comments

Comments
 (0)