Skip to content

Commit

Permalink
Simplify release identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Jul 28, 2024
1 parent 6049dd3 commit bc96dd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ import * as cronService from "@/service/cron.js";

const env = process.env;

const commitHash = env.RELEASE_IDENTIFIER || undefined; // || instead of ?? to make empty string undefined
const buildMetadata = env.BUILD_NUMBER ? `-build.${env.BUILD_NUMBER}` : "";
const release = commitHash ? `[email protected]${buildMetadata}+${commitHash}` : undefined;
const release =
env.RELEASE_IDENTIFIER && env.BUILD_NUMBER
? `[email protected].${env.BUILD_NUMBER}+commit.${env.RELEASE_IDENTIFIER}`
: undefined;

{
const prodMode =
Expand Down

0 comments on commit bc96dd5

Please sign in to comment.