From d1c29fb320799931f35ce92cd2de1e2ce702d935 Mon Sep 17 00:00:00 2001 From: overtorment Date: Mon, 16 Dec 2024 17:33:04 +0000 Subject: [PATCH] FIX: notify tg --- .github/workflows/merger.yml | 3 ++- src/main.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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); }); });