Skip to content

Commit

Permalink
Patch: bad rename, having ignored JS shorthand notation being used in…
Browse files Browse the repository at this point in the history
… map literal.

Was broken in:
#45
  • Loading branch information
QuintinWillison committed Sep 27, 2022
1 parent 3d7c421 commit 19bd2ae
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 || undefined, 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: [], environment: 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 @@ -108,7 +108,7 @@ const createDeployment = async () => {
ref: githubDeploymentRef,
task: artifactName || undefined,
required_contexts: [],
githubEnvironmentName,
environment: githubEnvironmentName,
auto_merge: false,
});
if (![201, 202].includes(response.status)) {
Expand Down

0 comments on commit 19bd2ae

Please sign in to comment.