Skip to content

Commit ad91566

Browse files
committed
feat: add actor to payload
1 parent a785a32 commit ad91566

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8668,7 +8668,7 @@ function invalidatePreviousDeployments(client, environment) {
86688668
function create(client, logUrl, description, initialStatus, environment, environmentUrl) {
86698669
return __awaiter(this, void 0, void 0, function* () {
86708670
yield invalidatePreviousDeployments(client, environment);
8671-
const deployment = yield client.repos.createDeployment(Object.assign(Object.assign({}, github_1.context.repo), { ref: github_1.context.ref, required_contexts: [], environment, transient_environment: true, auto_merge: false, description }));
8671+
const deployment = yield client.repos.createDeployment(Object.assign(Object.assign({}, github_1.context.repo), { ref: github_1.context.ref, required_contexts: [], environment, transient_environment: true, auto_merge: false, description, payload: JSON.stringify({ actor: github_1.context.actor }) }));
86728672
console.log(`created deployment: ${JSON.stringify(deployment.data, null, 2)}`);
86738673
const status = yield client.repos.createDeploymentStatus(Object.assign(Object.assign({}, github_1.context.repo), { deployment_id: deployment.data.id, state: initialStatus, log_url: logUrl, environment_url: environmentUrl }));
86748674
console.log(`created deployment status: ${JSON.stringify(status.data, null, 2)}`);

src/create.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export async function create (
5757
environment,
5858
transient_environment: true,
5959
auto_merge: false,
60-
description
60+
description,
61+
payload: JSON.stringify({ actor: context.actor })
6162
})
6263

6364
console.log(`created deployment: ${JSON.stringify(deployment.data, null, 2)}`)

0 commit comments

Comments
 (0)