Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Feb 24, 2023
1 parent b348c93 commit 2bb4591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function run() {
"repo_name": process.env.GITHUB_REPOSITORY,
"payload": { "build_num": runId, "status": "done" }
};
console.log('Sending to coveralls', payload);
request_1.default.post({
url: `${process.env.COVERALLS_ENDPOINT || 'https://coveralls.io'}/webhook`,
body: payload,
Expand Down
4 changes: 2 additions & 2 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function run() {

const carryforward = core.getInput('carryforward');
if (carryforward != '') {
process.env.COVERALLS_CARRYFORWARD_FLAGS = carryforward
process.env.COVERALLS_CARRYFORWARD_FLAGS = carryforward;
}

if(core.getInput('parallel-finished') != '') {
Expand All @@ -70,7 +70,7 @@ export async function run() {
"repo_name": process.env.GITHUB_REPOSITORY,
"payload": { "build_num": runId, "status": "done" }
};

console.log('Sending to coveralls', payload);
request.post({
url: `${process.env.COVERALLS_ENDPOINT || 'https://coveralls.io'}/webhook`,
body: payload,
Expand Down

0 comments on commit 2bb4591

Please sign in to comment.