Skip to content

Commit a26acb6

Browse files
authored
Update action.js
1 parent 328ee3d commit a26acb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const setFromPath = octokit => owner => async repo => {
2727
if (!path) throw new Error(`No path specified within the workflow file for this (${event_name}) event.`);
2828

2929
console.log(`Using the specified path (${path}), for this ${event_name} event`);
30-
return path;
30+
return normalise(path);
3131
} catch(error) {
3232
console.error(error.message);
3333
return undefined;
@@ -64,8 +64,8 @@ const setFromPath = octokit => owner => async repo => {
6464
core.setOutput("previous", file ? file.previous_filename || file.filename : target);
6565

6666
if (file) return;
67-
if (strict) throw `None of the files in this commits diff tree match the provided file (${path}).`;
68-
console.log(`None of the files in this commits diff tree match the provided file (${path}).`);
67+
if (strict) throw `None of the files in this commits diff tree match the provided file (${target}).`;
68+
console.log(`None of the files in this commits diff tree match the provided file (${target}).`);
6969

7070
} catch (error) {
7171
core.setFailed(error);

0 commit comments

Comments
 (0)