Skip to content

Commit

Permalink
#201: tag was missing from release notes generator (#202)
Browse files Browse the repository at this point in the history
* #201: tag was missing from release notes generator

* #201: creation of annotated git tag
  • Loading branch information
lsulak authored May 28, 2024
1 parent 190e2fb commit fc49d63
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,24 @@ jobs:
const ref = `refs/tags/${tag}`;
const sha = context.sha; // The SHA of the commit to tag
const tagObject = await github.git.createTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag,
message: tagMessage,
object: sha,
type: 'commit',
tagger: {
name: context.actor,
date: new Date().toISOString()
}
});
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: ref,
sha: sha
sha: tagObject.data.sha
});
console.log(`Tag created: ${tag}`);
Expand All @@ -96,6 +109,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-name: ${{ github.event.inputs.tagName }}
chapters: |
[
{"title": "Breaking Changes 💥", "label": "breaking-change"},
Expand Down

0 comments on commit fc49d63

Please sign in to comment.