Skip to content

Commit

Permalink
pushing the dist
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivas-jay committed Jul 25, 2023
1 parent b9944a8 commit ad5e668
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47476,14 +47476,14 @@ async function run() {

// Set up Git
const gitClient = git();
await gitClient.addConfig('user.name', userName);
await gitClient.addConfig('user.email', userEmail);
await gitClient.addConfig('user.name', inputs.userName);
await gitClient.addConfig('user.email', inputs.userEmail);

// Check if the commit is made by this action
const isActionCommit = await isCommitMadeByAction(
gitClient,
userName,
userEmail
inputs.userName,
inputs.userEmail
);

// if so run the only publish command and exit
Expand All @@ -47493,17 +47493,22 @@ async function run() {
}

// Run the version command on new branch
await checkoutBranch(gitClient, branchName);
await checkoutBranch(gitClient, inputs.branchName);
await runCommand(versionCommand);
await commitChanges(gitClient, commitMsg, branchName);
await commitChanges(gitClient, commitMsg, inputs.branchName);

const octokit = new Octokit({
auth: githubToken,
auth: inputs.githubToken,
request: {
fetch: fetch
}
});
await createPullRequest(octokit, context, commitTitle, branchName);
await createPullRequest(
octokit,
context,
commitTitle,
inputs.branchName
);
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit ad5e668

Please sign in to comment.