Skip to content

Commit 1be871f

Browse files
committed
revert back to use set-output command
1 parent 3f0c8ac commit 1be871f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

index.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ class Action {
4343
this._executeInProcess(`git tag ${TAG}`)
4444
this._executeInProcess(`git push origin ${TAG}`)
4545

46-
process.stdout.write(`VERSION=${TAG}` + os.EOL)
47-
46+
process.stdout.write(`::set-output name=VERSION::${TAG}` + os.EOL)
4847
}
4948

5049
_pushPackage(version, name) {
@@ -79,12 +78,12 @@ class Action {
7978
const packageFilename = packages.filter(p => p.endsWith(".nupkg"))[0],
8079
symbolsFilename = packages.filter(p => p.endsWith(".snupkg"))[0]
8180

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)
8483

8584
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)
8887
}
8988

9089
if (this.tagCommit)
@@ -107,7 +106,7 @@ class Action {
107106
console.log('404 response, assuming new package')
108107
this._pushPackage(this.version, this.packageName)
109108
}
110-
109+
111110

112111
if (res.statusCode == 200) {
113112
res.setEncoding("utf8")

0 commit comments

Comments
 (0)