diff --git a/index.js b/index.js index 892e02d..2d4c46a 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,8 @@ class Action { this._executeInProcess(`git tag ${TAG}`) this._executeInProcess(`git push origin ${TAG}`) - process.stdout.write(`::set-output name=VERSION::${TAG}` + os.EOL) + process.stdout.write(`VERSION=${TAG}` + os.EOL) + } _pushPackage(version, name) { @@ -78,12 +79,12 @@ class Action { const packageFilename = packages.filter(p => p.endsWith(".nupkg"))[0], symbolsFilename = packages.filter(p => p.endsWith(".snupkg"))[0] - process.stdout.write(`::set-output name=PACKAGE_NAME::${packageFilename}` + os.EOL) - process.stdout.write(`::set-output name=PACKAGE_PATH::${path.resolve(packageFilename)}` + os.EOL) + process.stdout.write(`PACKAGE_NAME=${packageFilename}` + os.EOL) + process.stdout.write(`PACKAGE_PATH=${path.resolve(packageFilename)}` + os.EOL) if (symbolsFilename) { - process.stdout.write(`::set-output name=SYMBOLS_PACKAGE_NAME::${symbolsFilename}` + os.EOL) - process.stdout.write(`::set-output name=SYMBOLS_PACKAGE_PATH::${path.resolve(symbolsFilename)}` + os.EOL) + process.stdout.write(`SYMBOLS_PACKAGE_NAME=${symbolsFilename}` + os.EOL) + process.stdout.write(`SYMBOLS_PACKAGE_PATH=${path.resolve(symbolsFilename)}` + os.EOL) } if (this.tagCommit) @@ -106,7 +107,7 @@ class Action { console.log('404 response, assuming new package') this._pushPackage(this.version, this.packageName) } - + if (res.statusCode == 200) { res.setEncoding("utf8")