Skip to content

Commit

Permalink
compiled action
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Apr 12, 2022
1 parent 8441942 commit d15976e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8718,6 +8718,7 @@ async function getLastRelease(client, prefix) {
}

async function buildChangeLog(client, lastTaggedCommitSha, nextVersion) {
console.log(`Generating changelog since commit ${lastTaggedCommitSha} ...`);
const commitsSinceLastTag = await client.repos.listCommits({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
Expand All @@ -8731,11 +8732,12 @@ async function buildChangeLog(client, lastTaggedCommitSha, nextVersion) {
changeLog += `* ${commits[i].commit.message}\n`;
i++;
}

console.log(`Generated changelog since commit ${lastTaggedCommitSha}`);
return changeLog;
}

async function release(client, changeLog, nextVersion) {
console.log(`Creating release for version ${nextVersion} ...`);
await client.git.createRef({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
Expand All @@ -8749,6 +8751,7 @@ async function release(client, changeLog, nextVersion) {
name: `Version ${nextVersion}`,
body: changeLog
});
console.log(`Created release for version ${nextVersion}`);
}

function extractBranch(rawBranch) {
Expand Down

0 comments on commit d15976e

Please sign in to comment.