File tree 3 files changed +17
-4
lines changed
3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 13
13
with :
14
14
out-file : output.json
15
15
16
- - name : xxx
16
+ - name : Check output file presence
17
17
shell : bash
18
18
run : |
19
19
if [ -f 'output.json' ]; then
22
22
else
23
23
echo "No output file"
24
24
fi
25
+ non_exist :
26
+ runs-on : ubuntu-latest
27
+ name : Test with non-existent file and directory on input
28
+ steps :
29
+ - name : Checkout
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Test
33
+ uses : ./
34
+ with :
35
+ in-file : asdf_file
36
+ in-directory : asdf_dir
37
+ out-file : output.json
25
38
26
39
file_to_file :
27
40
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 39
39
return ;
40
40
}
41
41
else
42
- core . error ( "inDirectory " + inDirectory + " does not exist" ) ;
42
+ core . warning ( "inDirectory " + inDirectory + " does not exist" ) ;
43
43
}
44
44
45
45
// Directory of single-object files
72
72
} ) ;
73
73
}
74
74
else
75
- core . error ( "inDirectory " + inDirectory + " does not exist" ) ;
75
+ core . warning ( "inDirectory " + inDirectory + " does not exist" ) ;
76
76
}
77
77
78
78
// Output file
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " json-merge" ,
3
- "version" : " 1.1 .0" ,
3
+ "version" : " 1.2 .0" ,
4
4
"description" : " Merges multi-object JSON with multiple single-object JSONs" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments