Skip to content

Commit

Permalink
update env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
keturiosakys committed May 11, 2023
1 parent 26f301b commit 75698ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/autometrics-lib/src/buildInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ function getVersion() {
if (process.env.npm_package_version) {
return process.env.npm_package_version;
} else {
return process.env.PACKAGE_VERSION;
return process.env.PACKAGE_VERSION || process.env.AUTOMETRICS_VERSION;
}
}

function getCommit() {
return process.env.COMMIT_SHA;
return process.env.COMMIT_SHA || process.env.AUTOMETRICS_COMMIT;
}

function getBranch() {
return process.env.BRANCH_NAME;
return process.env.BRANCH_NAME || process.env.AUTOMETRICS_BRANCH;
}

0 comments on commit 75698ed

Please sign in to comment.