File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ function run() {
90
90
core . setFailed ( error . message ) ;
91
91
} ) ;
92
92
core . info ( output ) ;
93
+ output = removeStarLines ( output ) ;
93
94
output = output . replace ( / % / g, '%25' ) ;
94
95
output = output . replace ( / \n / g, '%0A' ) ;
95
96
output = output . replace ( / \r / g, '%0D' ) ;
@@ -100,6 +101,11 @@ function run() {
100
101
} ) ;
101
102
} ) ;
102
103
}
104
+ function removeStarLines ( inputString , lineBreak = '\n' ) {
105
+ const lines = inputString . split ( lineBreak ) ;
106
+ const filteredLines = lines . filter ( line => line . trim ( ) !== '*' ) ;
107
+ return filteredLines . join ( lineBreak ) ;
108
+ }
103
109
run ( ) ;
104
110
105
111
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ async function run(): Promise<void> {
58
58
} )
59
59
60
60
core . info ( output )
61
-
61
+ output = removeStarLines ( output )
62
62
output = output . replace ( / % / g, '%25' )
63
63
output = output . replace ( / \n / g, '%0A' )
64
64
output = output . replace ( / \r / g, '%0D' )
@@ -71,4 +71,10 @@ async function run(): Promise<void> {
71
71
} )
72
72
}
73
73
74
+ function removeStarLines ( inputString : string , lineBreak : string = '\n' ) : string {
75
+ const lines = inputString . split ( lineBreak )
76
+ const filteredLines = lines . filter ( line => line . trim ( ) !== '*' )
77
+ return filteredLines . join ( lineBreak )
78
+ }
79
+
74
80
run ( )
You can’t perform that action at this time.
0 commit comments