@@ -40177,8 +40177,9 @@ async function authGithubApp(inp) {
40177
40177
const token = await appOctokit.rest.apps.createInstallationAccessToken({ installation_id: installationID }).then(response => response.data.token);
40178
40178
const octokit = new RestOctokit({ auth: token, baseUrl: apiUrl });
40179
40179
const defaultBranch = await octokit.rest.repos.get({ owner, repo }).then(response => response.data.default_branch);
40180
+ const lastCommit = core.getInput('lastCommit') === 'auto' ? process.env.GITHUB_SHA : core.getInput('lastCommit');
40180
40181
console.log(`Successfully authenticated as GitHub app`);
40181
- return { octokit, repoData: { owner, repo, branch, defaultBranch, url } };
40182
+ return { octokit, repoData: { owner, repo, branch, defaultBranch, url, lastCommit } };
40182
40183
}
40183
40184
exports.authGithubApp = authGithubApp;
40184
40185
@@ -40550,9 +40551,8 @@ async function getTag(inp) {
40550
40551
}
40551
40552
async function getChanges(inp) {
40552
40553
const { api, prevRelease, repoData } = inp;
40553
- const { branch, defaultBranch } = repoData;
40554
+ const { branch, defaultBranch, lastCommit } = repoData;
40554
40555
let firstCommit = '';
40555
- let lastCommit = core.getInput('lastCommit') === 'auto' ? process.env.GITHUB_SHA : core.getInput('lastCommit');
40556
40556
try {
40557
40557
if (prevRelease.commit == null) {
40558
40558
if (branch === defaultBranch) {
@@ -40844,7 +40844,7 @@ async function storeReleaseData(inp) {
40844
40844
if (!inputs.release.update_release_data) {
40845
40845
return;
40846
40846
}
40847
- const lastCommit = core_1.default.getInput(' lastCommit') === 'auto' ? process.env.GITHUB_SHA : core_1.default.getInput('lastCommit') ;
40847
+ const { lastCommit } = repoData ;
40848
40848
let updated = await checkStoreReleaseData({ inputs, api, repoData, lastCommit });
40849
40849
let retries = 0;
40850
40850
while (!updated && retries < 10) {
0 commit comments