Always use relative path to action runner workspace

pull/10/head
Webber 2020-01-06 23:54:03 +01:00
parent 5952e3d2f6
commit 97acbdc03a
2 changed files with 1 additions and 6 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -18,11 +18,6 @@ export default class Action {
} }
static get rootFolder() { static get rootFolder() {
if (!Action.isRunningLocally) {
const workspace = process.env.RUNNER_WORKSPACE;
return `${workspace}/${path.basename(workspace)}`;
}
if (Action.isRunningFromSource) { if (Action.isRunningFromSource) {
return path.dirname(path.dirname(path.dirname(__filename))); return path.dirname(path.dirname(path.dirname(__filename)));
} }