File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const setFromPath = octokit => owner => async repo => {
27
27
if ( ! path ) throw new Error ( `No path specified within the workflow file for this (${ event_name } ) event.` ) ;
28
28
29
29
console . log ( `Using the specified path (${ path } ), for this ${ event_name } event` ) ;
30
- return path ;
30
+ return normalise ( path ) ;
31
31
} catch ( error ) {
32
32
console . error ( error . message ) ;
33
33
return undefined ;
@@ -64,8 +64,8 @@ const setFromPath = octokit => owner => async repo => {
64
64
core . setOutput ( "previous" , file ? file . previous_filename || file . filename : target ) ;
65
65
66
66
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 } ).` ) ;
69
69
70
70
} catch ( error ) {
71
71
core . setFailed ( error ) ;
You can’t perform that action at this time.
0 commit comments