From b45b1fa272bd43ce36f68ff5c0a116c1d5a5c56a Mon Sep 17 00:00:00 2001 From: Rob van der Leek <5324924+robvanderleek@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:10:10 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=9A=A7=20Fix=20badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.js | 1 + src/github.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 32099c3..c02324b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -46806,6 +46806,7 @@ var require_github2 = __commonJS({ const res = yield octokit.repos.getContent({ owner, repo, + ref: `refs/heads/${branchName}`, path }); sha = res.data.sha; diff --git a/src/github.ts b/src/github.ts index 818601b..feb174c 100644 --- a/src/github.ts +++ b/src/github.ts @@ -50,7 +50,8 @@ export async function createOrUpdateFile(octokit: Octokit, owner: string, repo: const res = await octokit.repos.getContent({ owner: owner, repo: repo, - path: path, + ref: `refs/heads/${branchName}`, + path: path }); sha = (res.data as any).sha; } catch (e) {