Skip to content

Commit

Permalink
fix core import on markPullRequestsAsDeployed.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Mar 27, 2024
1 parent 69a2849 commit 3f66eab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/actions/javascript/markPullRequestsAsDeployed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11568,7 +11568,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
/* eslint-disable @typescript-eslint/naming-convention, import/no-import-module-exports */
const core_1 = __importDefault(__nccwpck_require__(2186));
const core = __importStar(__nccwpck_require__(2186));
const github_1 = __nccwpck_require__(5438);
const ActionUtils = __importStar(__nccwpck_require__(970));
const CONST_1 = __importDefault(__nccwpck_require__(4097));
Expand Down Expand Up @@ -11600,19 +11600,19 @@ async function commentPR(PR, message) {
catch (err) {
console.log(`Unable to write comment on #${PR} 😞`);
if (err instanceof Error) {
core_1.default.setFailed(err.message);
core.setFailed(err.message);
}
}
}
const workflowURL = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
async function run() {
const prList = ActionUtils.getJSONInput('PR_LIST', { required: true }).map((num) => Number.parseInt(num, 10));
const isProd = ActionUtils.getJSONInput('IS_PRODUCTION_DEPLOY', { required: true });
const version = core_1.default.getInput('DEPLOY_VERSION', { required: true });
const androidResult = getDeployTableMessage(core_1.default.getInput('ANDROID', { required: true }));
const desktopResult = getDeployTableMessage(core_1.default.getInput('DESKTOP', { required: true }));
const iOSResult = getDeployTableMessage(core_1.default.getInput('IOS', { required: true }));
const webResult = getDeployTableMessage(core_1.default.getInput('WEB', { required: true }));
const version = core.getInput('DEPLOY_VERSION', { required: true });
const androidResult = getDeployTableMessage(core.getInput('ANDROID', { required: true }));
const desktopResult = getDeployTableMessage(core.getInput('DESKTOP', { required: true }));
const iOSResult = getDeployTableMessage(core.getInput('IOS', { required: true }));
const webResult = getDeployTableMessage(core.getInput('WEB', { required: true }));
function getDeployMessage(deployer, deployVerb, prTitle) {
let message = `🚀 [${deployVerb}](${workflowURL}) to ${isProd ? 'production' : 'staging'}`;
message += ` by https://github.com/${deployer} in version: ${version} 🚀`;
Expand Down Expand Up @@ -11653,7 +11653,7 @@ async function run() {
if (!currentTag) {
const err = `Could not find tag matching ${version}`;
console.error(err);
core_1.default.setFailed(err);
core.setFailed(err);
return;
}
const { data: commit } = await GithubUtils_1.default.octokit.git.getCommit({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention, import/no-import-module-exports */
import core from '@actions/core';
import * as core from '@actions/core';
import {context} from '@actions/github';
import * as ActionUtils from '@github/libs/ActionUtils';
import CONST from '@github/libs/CONST';
Expand Down

0 comments on commit 3f66eab

Please sign in to comment.