Skip to content

Commit

Permalink
Update dist/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 4, 2024
1 parent 51b26c1 commit df48604
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40177,8 +40177,9 @@ async function authGithubApp(inp) {
const token = await appOctokit.rest.apps.createInstallationAccessToken({ installation_id: installationID }).then(response => response.data.token);
const octokit = new RestOctokit({ auth: token, baseUrl: apiUrl });
const defaultBranch = await octokit.rest.repos.get({ owner, repo }).then(response => response.data.default_branch);
const lastCommit = core.getInput('lastCommit') === 'auto' ? process.env.GITHUB_SHA : core.getInput('lastCommit');
console.log(`Successfully authenticated as GitHub app`);
return { octokit, repoData: { owner, repo, branch, defaultBranch, url } };
return { octokit, repoData: { owner, repo, branch, defaultBranch, url, lastCommit } };
}
exports.authGithubApp = authGithubApp;

Expand Down Expand Up @@ -40550,9 +40551,8 @@ async function getTag(inp) {
}
async function getChanges(inp) {
const { api, prevRelease, repoData } = inp;
const { branch, defaultBranch } = repoData;
const { branch, defaultBranch, lastCommit } = repoData;
let firstCommit = '';
let lastCommit = core.getInput('lastCommit') === 'auto' ? process.env.GITHUB_SHA : core.getInput('lastCommit');
try {
if (prevRelease.commit == null) {
if (branch === defaultBranch) {
Expand Down Expand Up @@ -40844,7 +40844,7 @@ async function storeReleaseData(inp) {
if (!inputs.release.update_release_data) {
return;
}
const lastCommit = core_1.default.getInput('lastCommit') === 'auto' ? process.env.GITHUB_SHA : core_1.default.getInput('lastCommit');
const { lastCommit } = repoData;
let updated = await checkStoreReleaseData({ inputs, api, repoData, lastCommit });
let retries = 0;
while (!updated && retries < 10) {
Expand Down

0 comments on commit df48604

Please sign in to comment.