Skip to content

Commit

Permalink
Test Kick Commit[6]
Browse files Browse the repository at this point in the history
  • Loading branch information
cvetty committed Dec 13, 2024
1 parent 871bd49 commit 880098e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/draft-release/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,20 @@ module.exports = async ({ github, context, inputs }) => {
}

console.log(`Creating a new untagged release for ${inputs.branchName}`);
const { data: notes } = await github.rest.repos.generateReleaseNotes({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: tagName,
target_commitish: inputs.branchName,
previous_tag_name: latestTag?.name,
});
await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: tagName,
name: `Unreleased [${inputs.branchName}]`,
body: notes.body,
draft: true,
generate_release_notes: true,
target_commitish: inputs.branchName,
previous_tag_name: latestTag?.name,
});
};

0 comments on commit 880098e

Please sign in to comment.