Skip to content

Commit

Permalink
chore: 🚧 Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 1, 2024
1 parent 3e13b0d commit f48a58b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46871,7 +46871,15 @@ function main() {
process.exit(1);
}
const empty_tree_object = "4b825dc642cb6eb9a060e54bf8d69288fbee4904";
yield (0, github_2.createBranch)(octokit, owner, repo, "_codelimit_reports", empty_tree_object);
const res = yield octokit.git.createCommit({
owner,
repo,
message: "Initial commit",
tree: empty_tree_object,
parents: []
});
const initialCommitSha = res.data.sha;
yield (0, github_2.createBranch)(octokit, owner, repo, "_codelimit_reports", initialCommitSha);
} else {
console.log("Branch _codelimit_reports already exists");
}
Expand Down
10 changes: 9 additions & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,15 @@ async function main() {
process.exit(1);
}
const empty_tree_object = '4b825dc642cb6eb9a060e54bf8d69288fbee4904';
await createBranch(octokit, owner, repo, '_codelimit_reports', empty_tree_object);
const res = await octokit.git.createCommit({
owner: owner,
repo: repo,
message: 'Initial commit',
tree: empty_tree_object,
parents: []
});
const initialCommitSha = res.data.sha
await createBranch(octokit, owner, repo, '_codelimit_reports', initialCommitSha);
} else {
console.log('Branch _codelimit_reports already exists');
}
Expand Down

0 comments on commit f48a58b

Please sign in to comment.