Skip to content

Commit

Permalink
fix: allow overwrite service_job_id (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Feb 28, 2023
1 parent 015205d commit 65affa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Expand Up @@ -40794,7 +40794,7 @@ function run() {
if (endpoint != '') {
process.env.COVERALLS_ENDPOINT = endpoint;
}
const runId = process.env.GITHUB_RUN_ID;
const runId = process.env.COVERALLS_SERVICE_JOB_ID ? process.env.COVERALLS_SERVICE_JOB_ID : process.env.GITHUB_RUN_ID;
process.env.COVERALLS_SERVICE_JOB_ID = runId;
const carryforward = core.getInput('carryforward');
if (carryforward != '') {
Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Expand Up @@ -55,7 +55,7 @@ export async function run() {
process.env.COVERALLS_ENDPOINT = endpoint;
}

const runId = process.env.GITHUB_RUN_ID;
const runId = process.env.COVERALLS_SERVICE_JOB_ID ? process.env.COVERALLS_SERVICE_JOB_ID : process.env.GITHUB_RUN_ID;
process.env.COVERALLS_SERVICE_JOB_ID = runId;

const carryforward = core.getInput('carryforward');
Expand Down

0 comments on commit 65affa9

Please sign in to comment.