chore: Test release

releases/v3
Tycho Bokdam 2019-10-18 10:11:54 +02:00
parent 29a8a977c2
commit 5254403a20
No known key found for this signature in database
GPG Key ID: A0FAE77C8CDF33C7
1 changed files with 24 additions and 1 deletions

View File

@ -1,6 +1,29 @@
const exec = require('@actions/exec') const exec = require('@actions/exec')
const git = command => exec.exec(`git ${command}`) const git = command => new Promise(async(resolve, reject) => {
let myOutput = ''
let myError = ''
const options = {
listeners: {
stdout: (data) => {
myOutput += data.toString()
},
stderr: (data) => {
myError += data.toString()
},
},
}
try {
await exec.exec(`git ${command}`, options)
resolve(myOutput)
} catch (e) {
reject(e)
}
})
module.exports = { module.exports = {