Skip to content

Commit

Permalink
Refine Patch, with build and package.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintinWillison committed Sep 27, 2022
1 parent 165f5d9 commit 3d7c421
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const upload = (params) => __awaiter(void 0, void 0, void 0, function* () {
core.info(`uploaded: ${params.Key}`);
});
const createDeployment = () => __awaiter(void 0, void 0, void 0, function* () {
const response = yield octokit.repos.createDeployment(Object.assign(Object.assign({}, github_1.context.repo), { ref: githubDeploymentRef, task: (artifactName && artifactName.length > 0) ? artifactName : 'root', required_contexts: [], githubEnvironmentName, auto_merge: false }));
const response = yield octokit.repos.createDeployment(Object.assign(Object.assign({}, github_1.context.repo), { ref: githubDeploymentRef, task: artifactName || undefined, required_contexts: [], githubEnvironmentName, auto_merge: false }));
if (![201, 202].includes(response.status)) {
core.setFailed(`Failed to create deployment, received ${response.status} response status`);
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const createDeployment = async () => {
const response = await octokit.repos.createDeployment({
...context.repo,
ref: githubDeploymentRef,
task: (artifactName && artifactName.length > 0) ? artifactName : 'root',
task: artifactName || undefined,
required_contexts: [],
githubEnvironmentName,
auto_merge: false,
Expand Down

0 comments on commit 3d7c421

Please sign in to comment.