Skip to content

Commit

Permalink
fixup! ci: Update main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin committed Aug 14, 2023
1 parent 0c55fc1 commit 50aa758
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 10 deletions.
29 changes: 25 additions & 4 deletions dist/archive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72431,7 +72431,7 @@ const log_1 = __importStar(__nccwpck_require__(5042));
const GitHubArtifactStore_1 = __importDefault(__nccwpck_require__(2427));
const GitHubCacheStore_1 = __importDefault(__nccwpck_require__(7418));
const CLIArchiveCommand_1 = __importDefault(__nccwpck_require__(8634));
const verbose_1 = __importDefault(__nccwpck_require__(2472));
const setVerbose_1 = __nccwpck_require__(5284);
class ArchiveAction {
constructor() {
this.jobRunId = process.env.GITHUB_RUN_ID;
Expand All @@ -72449,7 +72449,7 @@ class ArchiveAction {
].join('-');
}
static prepareAction(action) {
(0, verbose_1.default)(core.getBooleanInput('verbose'));
(0, setVerbose_1.setVerbose)(core.getInput('verbose'));
const directory = core.getInput('directory');
// commit-sha is checked for backwards compatibility
const revision = core.getInput('revision') || core.getInput('commit-sha') || process.env.GITHUB_SHA;
Expand Down Expand Up @@ -72789,10 +72789,10 @@ const assert_1 = __importDefault(__nccwpck_require__(9491));
const ArchiveAction_1 = __importDefault(__nccwpck_require__(6335));
const locateArchiveFile_1 = __importDefault(__nccwpck_require__(5176));
const log_1 = __importStar(__nccwpck_require__(5042));
const verbose_1 = __importDefault(__nccwpck_require__(2472));
const CLIArchiveCommand_1 = __importDefault(__nccwpck_require__(8634));
const LocalArtifactStore_1 = __importDefault(__nccwpck_require__(3656));
const LocalCacheStore_1 = __importDefault(__nccwpck_require__(5419));
const setVerbose_1 = __nccwpck_require__(5284);
class Archive extends ArchiveAction_1.default {
archive() {
return __awaiter(this, void 0, void 0, function* () {
Expand Down Expand Up @@ -72830,6 +72830,8 @@ exports.Archive = Archive;
function runInGitHub() {
return __awaiter(this, void 0, void 0, function* () {
const archiveId = core.getInput('archive-id');
const isVerbose = core.getInput('verbose');
(0, setVerbose_1.setVerbose)(isVerbose);
const action = new Archive();
ArchiveAction_1.default.prepareAction(action);
if (archiveId)
Expand All @@ -72851,7 +72853,7 @@ function runLocally() {
});
const options = parser.parse_args();
const { directory, revision, appmap_command: appmapCommand, archive_id: archiveId } = options;
(0, verbose_1.default)(options.verbose === 'true' || options.verbose === true);
(0, setVerbose_1.setVerbose)(options.verbose);
if (directory)
process.chdir(directory);
const action = new Archive();
Expand Down Expand Up @@ -73085,6 +73087,25 @@ function log(level, message) {
exports["default"] = log;


/***/ }),

/***/ 5284:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {

"use strict";

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.setVerbose = void 0;
const verbose_1 = __importDefault(__nccwpck_require__(2472));
function setVerbose(isVerbose) {
(0, verbose_1.default)(isVerbose === 'true' || isVerbose === true);
}
exports.setVerbose = setVerbose;


/***/ }),

/***/ 2472:
Expand Down
2 changes: 1 addition & 1 deletion dist/archive/index.js.map

Large diffs are not rendered by default.

27 changes: 23 additions & 4 deletions dist/merge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72431,7 +72431,7 @@ const log_1 = __importStar(__nccwpck_require__(5042));
const GitHubArtifactStore_1 = __importDefault(__nccwpck_require__(2427));
const GitHubCacheStore_1 = __importDefault(__nccwpck_require__(7418));
const CLIArchiveCommand_1 = __importDefault(__nccwpck_require__(8634));
const verbose_1 = __importDefault(__nccwpck_require__(2472));
const setVerbose_1 = __nccwpck_require__(5284);
class ArchiveAction {
constructor() {
this.jobRunId = process.env.GITHUB_RUN_ID;
Expand All @@ -72449,7 +72449,7 @@ class ArchiveAction {
].join('-');
}
static prepareAction(action) {
(0, verbose_1.default)(core.getBooleanInput('verbose'));
(0, setVerbose_1.setVerbose)(core.getInput('verbose'));
const directory = core.getInput('directory');
// commit-sha is checked for backwards compatibility
const revision = core.getInput('revision') || core.getInput('commit-sha') || process.env.GITHUB_SHA;
Expand Down Expand Up @@ -73001,10 +73001,10 @@ const glob_1 = __nccwpck_require__(5029);
const path_1 = __nccwpck_require__(1017);
const fs_1 = __nccwpck_require__(7147);
const argparse_1 = __nccwpck_require__(1515);
const verbose_1 = __importDefault(__nccwpck_require__(2472));
const CLIArchiveCommand_1 = __importDefault(__nccwpck_require__(8634));
const LocalArtifactStore_1 = __importDefault(__nccwpck_require__(3656));
const LocalCacheStore_1 = __importDefault(__nccwpck_require__(5419));
const setVerbose_1 = __nccwpck_require__(5284);
class Merge extends ArchiveAction_1.default {
constructor(archiveCount) {
super();
Expand Down Expand Up @@ -73111,7 +73111,7 @@ function runLocally() {
parser.add_argument('--job-attempt-id', { required: true });
const options = parser.parse_args();
const { directory, archive_count: archiveCount, revision, appmap_command: appmapCommand, job_run_id: jobRunId, job_attempt_id: jobAttemptId, } = options;
(0, verbose_1.default)(options.verbose === 'true' || options.verbose === true);
(0, setVerbose_1.setVerbose)(options.verbose);
if (directory)
process.chdir(directory);
const action = new Merge(parseInt(archiveCount, 10));
Expand All @@ -73137,6 +73137,25 @@ if (require.main === require.cache[eval('__filename')]) {
}


/***/ }),

/***/ 5284:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {

"use strict";

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.setVerbose = void 0;
const verbose_1 = __importDefault(__nccwpck_require__(2472));
function setVerbose(isVerbose) {
(0, verbose_1.default)(isVerbose === 'true' || isVerbose === true);
}
exports.setVerbose = setVerbose;


/***/ }),

/***/ 2472:
Expand Down
2 changes: 1 addition & 1 deletion dist/merge/index.js.map

Large diffs are not rendered by default.

0 comments on commit 50aa758

Please sign in to comment.