Skip to content

Commit

Permalink
chore: 🚧 Fix badge
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 2, 2024
1 parent f377f1f commit b45b1fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b45b1fa

Please sign in to comment.