File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const wait = __webpack_require__(949);
60
60
// most @actions toolkit packages have async methods
61
61
async function run ( ) {
62
62
try {
63
- console . log ( "::save-state name=test::TestValue" ) ;
63
+ core . Error ( "::save-state name=test::TestValue" ) ;
64
64
}
65
65
catch ( error ) {
66
66
core . setFailed ( error . message ) ;
Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ const wait = __webpack_require__(949);
53
53
// most @actions toolkit packages have async methods
54
54
async function run ( ) {
55
55
try {
56
- if ( process . env . $ STATE_name != 'TestValue' ) {
56
+ if ( process . env . STATE_name != 'TestValue' ) {
57
57
core . setFailed ( error . message ) ;
58
58
}
59
59
else {
60
- console . log ( 'The Saved State value is:' , process . env . $ STATE_name) ;
60
+ core . Error ( 'The Saved State value is:' , process . env . STATE_name ) ;
61
61
}
62
62
}
63
63
catch ( error ) {
You can’t perform that action at this time.
0 commit comments