File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,7 @@ function run() {
95
95
output = output . replace ( / \n / g, '%0A' ) ;
96
96
output = output . replace ( / \r / g, '%0D' ) ;
97
97
core . info ( output ) ;
98
- const setoutputCommand = `echo "diff=${ output } " >> $GITHUB_OUTPUT` ;
99
- exec . exec ( setoutputCommand ) . catch ( error => {
100
- core . setFailed ( error . message ) ;
101
- } ) ;
98
+ core . setOutput ( "diff" , output ) ;
102
99
} ) ;
103
100
}
104
101
function removeStarLines ( inputString , lineBreak = '\n' ) {
Original file line number Diff line number Diff line change @@ -65,10 +65,7 @@ async function run(): Promise<void> {
65
65
66
66
core . info ( output )
67
67
68
- const setoutputCommand = `echo "diff=${ output } " >> $GITHUB_OUTPUT`
69
- exec . exec ( setoutputCommand ) . catch ( error => {
70
- core . setFailed ( error . message )
71
- } )
68
+ core . setOutput ( "diff" , output )
72
69
}
73
70
74
71
function removeStarLines ( inputString : string , lineBreak : string = '\n' ) : string {
You can’t perform that action at this time.
0 commit comments