File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 50
50
steps :
51
51
- name : Checkout sources
52
52
uses : actions/checkout@v3
53
- with :
54
- submodules : true
55
53
56
54
- name : Install stable toolchain
57
55
uses : actions-rs/toolchain@v1
Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ fn write_outputs(
16
16
println ! ( "Parsing outputs..." ) ;
17
17
}
18
18
let json: serde_json:: Value = match serde_json:: from_str ( output) {
19
- Ok ( json) => json,
19
+ Ok ( json) => {
20
+ if * verbose {
21
+ println ! ( "Outputs parsed successfully." ) ;
22
+ }
23
+ json
24
+ }
20
25
Err ( e) => {
21
26
eprintln ! ( "Error parsing output: {}" , e) ;
22
27
std:: process:: exit ( 1 ) ;
23
28
}
24
29
} ;
25
- if * verbose {
26
- println ! ( "Parsed outputs." ) ;
27
- }
28
30
29
31
// Create the output directory if it doesn't exist
30
32
if !output_directory. exists ( ) {
@@ -33,7 +35,11 @@ fn write_outputs(
33
35
}
34
36
35
37
match std:: fs:: create_dir_all ( output_directory) {
36
- Ok ( _) => ( ) ,
38
+ Ok ( _) => {
39
+ if * verbose {
40
+ println ! ( "Output directory created successfully." ) ;
41
+ }
42
+ }
37
43
Err ( e) => {
38
44
eprintln ! (
39
45
"Error creating output directory '{}': {}" ,
@@ -43,10 +49,8 @@ fn write_outputs(
43
49
std:: process:: exit ( 1 ) ;
44
50
}
45
51
}
46
- } else {
47
- if * verbose {
48
- println ! ( "Output directory already exists." ) ;
49
- }
52
+ } else if * verbose {
53
+ println ! ( "Output directory already exists." ) ;
50
54
}
51
55
52
56
for key in keys {
You can’t perform that action at this time.
0 commit comments