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 3f32adf commit 06d6d06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8737,13 +8737,16 @@ async function buildChangeLog(client, lastTaggedCommitSha, nextVersion) {
}

async function release(client, changeLog, nextVersion) {
console.log(`Creating release for version ${nextVersion} ...`);
console.log(`Releasing version ${nextVersion} ...`);
const sha = core.getInput('sha').length === 0 ? github.context.sha : core.getInput('sha');
console.log(`- Adding tag ${nextVersion} on commit ${sha}`);
await client.git.createRef({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
ref: `refs/tags/${nextVersion}`,
sha: core.getInput('sha').length === 0 ? github.context.sha : core.getInput('sha')
sha: sha
});
console.log(`- Tag ${nextVersion} added on commit ${sha}`);
await client.repos.createRelease({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
Expand Down

0 comments on commit 06d6d06

Please sign in to comment.