diff --git a/.github/workflows/merger.yml b/.github/workflows/merger.yml index 56ca228..50b56b4 100644 --- a/.github/workflows/merger.yml +++ b/.github/workflows/merger.yml @@ -17,4 +17,5 @@ jobs: npm install --production ./node_modules/.bin/ts-node src/main.ts env: - TOKEN: ${{ secrets.TOKEN }} \ No newline at end of file + TOKEN: ${{ secrets.TOKEN }} + CONNECTOR_ID: ${{ secrets.CONNECTOR_ID }} diff --git a/src/main.ts b/src/main.ts index 674fd73..eb98084 100644 --- a/src/main.ts +++ b/src/main.ts @@ -206,8 +206,8 @@ async function run(): Promise { } } - function postDataToTrafficRobot(data, connectorId) { + console.log('notifying trafficRobot'); var postData = querystring.stringify({ data }); @@ -224,8 +224,8 @@ function postDataToTrafficRobot(data, connectorId) { }; var req = https.request(options, (res) => { - res.on('data', (d) => { - process.stdout.write(d); + res.on("data", (d) => { + console.log(d); }); });