Skip to content

Commit

Permalink
fix: run gh-actions-build
Browse files Browse the repository at this point in the history
  • Loading branch information
kubabutkiewicz committed Apr 3, 2024
1 parent ef5f493 commit 25318df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12149,16 +12149,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
/* eslint-disable @typescript-eslint/naming-convention */
const throttle_1 = __importDefault(__nccwpck_require__(2891));
const ActionUtils_1 = __importDefault(__nccwpck_require__(6981));
const ActionUtils_1 = __nccwpck_require__(6981);
const CONST_1 = __importDefault(__nccwpck_require__(9873));
const GithubUtils_1 = __importStar(__nccwpck_require__(9296));
const promiseWhile_1 = __nccwpck_require__(9438);
function run() {
console.info('[awaitStagingDeploys] run()');
console.info('[awaitStagingDeploys] ActionUtils', ActionUtils_1.default);
console.info('[awaitStagingDeploys] getStringInput', ActionUtils_1.getStringInput);
console.info('[awaitStagingDeploys] GitHubUtils', GithubUtils_1.default);
console.info('[awaitStagingDeploys] promiseDoWhile', promiseWhile_1.promiseDoWhile);
const tag = ActionUtils_1.default.getStringInput('TAG', { required: false });
const tag = (0, ActionUtils_1.getStringInput)('TAG', { required: false });
console.info('[awaitStagingDeploys] run() tag', tag);
let currentStagingDeploys = [];
console.info('[awaitStagingDeploys] run() _.throttle', throttle_1.default);
Expand Down Expand Up @@ -12765,7 +12765,7 @@ function promiseWhile(condition, action) {
resolve();
}
else {
const actionResult = action();
const actionResult = action?.();
console.info('[promiseWhile] promiseWhile() actionResult', actionResult);
Promise.resolve(actionResult).then(loop).catch(reject);
}
Expand All @@ -12781,10 +12781,10 @@ function promiseDoWhile(condition, action) {
console.info('[promiseWhile] promiseDoWhile()');
return new Promise((resolve, reject) => {
console.info('[promiseWhile] promiseDoWhile() condition', condition);
const actionResult = action();
const actionResult = action?.();
console.info('[promiseWhile] promiseDoWhile() actionResult', actionResult);
actionResult
.then(() => promiseWhile(condition, action))
?.then(() => promiseWhile(condition, action))
.then(() => resolve())
.catch(reject);
});
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/javascript/getDeployPullRequestList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11476,13 +11476,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const core_1 = __importDefault(__nccwpck_require__(2186));
const github_1 = __importDefault(__nccwpck_require__(5438));
const ActionUtils_1 = __importDefault(__nccwpck_require__(6981));
const ActionUtils_1 = __nccwpck_require__(6981);
const GithubUtils_1 = __importDefault(__nccwpck_require__(9296));
const GitUtils_1 = __importDefault(__nccwpck_require__(1547));
async function run() {
try {
const inputTag = core_1.default.getInput('TAG', { required: true });
const isProductionDeploy = ActionUtils_1.default.getJSONInput('IS_PRODUCTION_DEPLOY', { required: false }, false);
const isProductionDeploy = (0, ActionUtils_1.getJSONInput)('IS_PRODUCTION_DEPLOY', { required: false }, false);
const deployEnv = isProductionDeploy ? 'production' : 'staging';
console.log(`Looking for PRs deployed to ${deployEnv} in ${inputTag}...`);
const completedDeploys = (await GithubUtils_1.default.octokit.actions.listWorkflowRuns({
Expand Down

0 comments on commit 25318df

Please sign in to comment.