include build number at start of build id for readability

pull/235/head
mdugdale 2021-04-03 21:05:43 +01:00
parent 291e241898
commit b464633669
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -225,7 +225,7 @@ class AWS {
var _a;
return __awaiter(this, void 0, void 0, function* () {
try {
const buildUid = nanoid_1.nanoid();
const buildUid = `${process.env.GITHUB_RUN_NUMBER}-${nanoid_1.nanoid()}`;
const branchName = (_a = process.env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.split('/').reverse()[0];
core.info('Starting part 1/4 (clone from github and restore cache)');
yield this.run(buildUid, buildParameters.awsStackName, 'alpine/git', ['/bin/sh'], [

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@ import * as zlib from 'zlib';
class AWS {
static async runBuildJob(buildParameters, baseImage) {
try {
const buildUid = nanoid();
const buildUid = `${process.env.GITHUB_RUN_NUMBER}-${nanoid()}`;
const branchName = process.env.GITHUB_REF?.split('/').reverse()[0];
core.info('Starting part 1/4 (clone from github and restore cache)');