@@ -43,8 +43,7 @@ class Action {
43
43
this . _executeInProcess ( `git tag ${ TAG } ` )
44
44
this . _executeInProcess ( `git push origin ${ TAG } ` )
45
45
46
- process . stdout . write ( `VERSION=${ TAG } ` + os . EOL )
47
-
46
+ process . stdout . write ( `::set-output name=VERSION::${ TAG } ` + os . EOL )
48
47
}
49
48
50
49
_pushPackage ( version , name ) {
@@ -79,12 +78,12 @@ class Action {
79
78
const packageFilename = packages . filter ( p => p . endsWith ( ".nupkg" ) ) [ 0 ] ,
80
79
symbolsFilename = packages . filter ( p => p . endsWith ( ".snupkg" ) ) [ 0 ]
81
80
82
- process . stdout . write ( `PACKAGE_NAME= ${ packageFilename } ` + os . EOL )
83
- process . stdout . write ( `PACKAGE_PATH= ${ path . resolve ( packageFilename ) } ` + os . EOL )
81
+ process . stdout . write ( `::set-output name=PACKAGE_NAME:: ${ packageFilename } ` + os . EOL )
82
+ process . stdout . write ( `::set-output name=PACKAGE_PATH:: ${ path . resolve ( packageFilename ) } ` + os . EOL )
84
83
85
84
if ( symbolsFilename ) {
86
- process . stdout . write ( `SYMBOLS_PACKAGE_NAME= ${ symbolsFilename } ` + os . EOL )
87
- process . stdout . write ( `SYMBOLS_PACKAGE_PATH= ${ path . resolve ( symbolsFilename ) } ` + os . EOL )
85
+ process . stdout . write ( `::set-output name=SYMBOLS_PACKAGE_NAME:: ${ symbolsFilename } ` + os . EOL )
86
+ process . stdout . write ( `::set-output name=SYMBOLS_PACKAGE_PATH:: ${ path . resolve ( symbolsFilename ) } ` + os . EOL )
88
87
}
89
88
90
89
if ( this . tagCommit )
@@ -107,7 +106,7 @@ class Action {
107
106
console . log ( '404 response, assuming new package' )
108
107
this . _pushPackage ( this . version , this . packageName )
109
108
}
110
-
109
+
111
110
112
111
if ( res . statusCode == 200 ) {
113
112
res . setEncoding ( "utf8" )
0 commit comments