FIX: notify tg
This commit is contained in:
parent
8789d9c94f
commit
d1c29fb320
3
.github/workflows/merger.yml
vendored
3
.github/workflows/merger.yml
vendored
@ -17,4 +17,5 @@ jobs:
|
||||
npm install --production
|
||||
./node_modules/.bin/ts-node src/main.ts
|
||||
env:
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
CONNECTOR_ID: ${{ secrets.CONNECTOR_ID }}
|
||||
|
||||
@ -206,8 +206,8 @@ async function run(): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user