Skip to content

Commit

Permalink
Merge branch 'master' into feature/#190-Server-endpoints-v2-returning…
Browse files Browse the repository at this point in the history
…-the-checkpoins-data-of-a-partitioning
  • Loading branch information
TebaleloS authored May 30, 2024
2 parents 609d9d2 + ca39b78 commit 7ade768
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,27 @@ jobs:
const tag = core.getInput('tag-name')
const ref = `refs/tags/${tag}`;
const sha = context.sha; // The SHA of the commit to tag
const tagMessage = 'Releasing new version';
const tagObject = await github.rest.git.createTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag,
message: tagMessage,
object: sha,
type: 'commit',
tagger: {
name: context.actor,
email: `${context.actor}@users.noreply.github.com`,
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 +111,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 7ade768

Please sign in to comment.