From 278a84843c4a7f6c27c65e58eef89d9d88e0ede8 Mon Sep 17 00:00:00 2001 From: Raphiiko Date: Tue, 27 Jun 2023 13:46:03 +0200 Subject: [PATCH] Fix gist update call --- src/run.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/run.ts b/src/run.ts index 5f9436f..a61fd6a 100644 --- a/src/run.ts +++ b/src/run.ts @@ -44,7 +44,7 @@ export const run = async (context: ActionContext): Promise => { startGroup('Deploy to gist') if (gistId === undefined) { const response = await context.octokit.rest.gists.create({ - files: { [gistFileName]: { content: PLACEHOLDER } }, + files: { [gistFileName]: { content: PLACEHOLDER, filename: gistFileName } }, public: createAsPublic }) gistId = response.data.id! @@ -56,7 +56,7 @@ export const run = async (context: ActionContext): Promise => { await context.octokit.rest.gists.update({ gist_id: gistId, description: gistDescription, - files: { [gistFileName]: { content } } + files: { [gistFileName]: { content, filename: gistFileName } }, }) } else { const git = simpleGit()