diff --git a/azurecontainerapps.ts b/azurecontainerapps.ts index 2d2fb2ea..cf0efd50 100644 --- a/azurecontainerapps.ts +++ b/azurecontainerapps.ts @@ -59,9 +59,9 @@ export class azurecontainerapps { } } - // GitHub Action properties - private static buildId: string = toolHelper.getbuildId(); - private static buildNumber: string = toolHelper.getbuildNumber(); + // Build-specific properties + private static buildId: string = toolHelper.getBuildId(); + private static buildNumber: string = toolHelper.getBuildNumber(); // Supported scenario properties private static appSourcePath: string; diff --git a/dist/index.js b/dist/index.js index a8d686ac..4d2b02be 100644 --- a/dist/index.js +++ b/dist/index.js @@ -631,9 +631,9 @@ var azurecontainerapps = /** @class */ (function () { }); }); }; - // GitHub Action properties - azurecontainerapps.buildId = toolHelper.getbuildId(); - azurecontainerapps.buildNumber = toolHelper.getbuildNumber(); + // Build-specific properties + azurecontainerapps.buildId = toolHelper.getBuildId(); + azurecontainerapps.buildNumber = toolHelper.getBuildNumber(); return azurecontainerapps; }()); exports.azurecontainerapps = azurecontainerapps; @@ -5488,10 +5488,10 @@ var exec = __nccwpck_require__(9714); var GitHubActionsToolHelper = /** @class */ (function () { function GitHubActionsToolHelper() { } - GitHubActionsToolHelper.prototype.getbuildId = function () { + GitHubActionsToolHelper.prototype.getBuildId = function () { return process.env['GITHUB_RUN_ID'] || ''; }; - GitHubActionsToolHelper.prototype.getbuildNumber = function () { + GitHubActionsToolHelper.prototype.getBuildNumber = function () { return process.env['GITHUB_RUN_NUMBER'] || ''; }; GitHubActionsToolHelper.prototype.writeInfo = function (message) { diff --git a/src/GithubActionsToolHelper.ts b/src/GithubActionsToolHelper.ts index 9edb204a..317a130a 100644 --- a/src/GithubActionsToolHelper.ts +++ b/src/GithubActionsToolHelper.ts @@ -4,11 +4,11 @@ import * as exec from '@actions/exec'; export class GitHubActionsToolHelper { - public getbuildId(): string { + public getBuildId(): string { return process.env['GITHUB_RUN_ID'] || ''; } - public getbuildNumber(): string { + public getBuildNumber(): string { return process.env['GITHUB_RUN_NUMBER'] || ''; }