Skip to content

Commit

Permalink
fix: git failure
Browse files Browse the repository at this point in the history
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
  • Loading branch information
virtual-designer committed Aug 28, 2024
1 parent 494bcbb commit 2505cde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32102,6 +32102,7 @@ function run() {
const gitPush = core.getInput("git-push") === "true";
const gitPushRemote = core.getInput("git-push-remote") || "origin";
const gitPushBranch = core.getInput("git-push-branch") || undefined;
console.log(`Using git: ${gitPath}`);
const commits = github.context.payload.commits.map((commit) => ({
message: commit.message,
id: commit.id,
Expand All @@ -32114,7 +32115,7 @@ function run() {
for (const commit of commits) {
core.info(`- ${commit.id}: ${commit.message}`);
}
const gitClient = __addDisposableResource(env_1, new GitClient_1.default(gitPath), true);
const gitClient = __addDisposableResource(env_1, new GitClient_1.default("/usr/bin/git"), true);
const versionManager = new VersionManager_1.default();
if (allowedCommitTypes.length > 0) {
versionManager.setAllowedCommitTypes(allowedCommitTypes);
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ async function run() {
const gitPushRemote = core.getInput("git-push-remote") || "origin";
const gitPushBranch = core.getInput("git-push-branch") || undefined;

console.log(`Using git: ${gitPath}`);

const commits: Commit[] = github.context.payload.commits.map(
(commit: Commit) => ({
message: commit.message,
Expand All @@ -54,7 +56,7 @@ async function run() {
core.info(`- ${commit.id}: ${commit.message}`);
}

await using gitClient = new GitClient(gitPath);
await using gitClient = new GitClient("/usr/bin/git");
const versionManager = new VersionManager();

if (allowedCommitTypes.length > 0) {
Expand Down

0 comments on commit 2505cde

Please sign in to comment.