mathieudutour / mathieudutour/github-tag-action

Tag trailing .0

Open
#115 2 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
733
Forks
227
PR merge metrics
No merged PRs in 30d

Description

Hello,

Is there a way to remove the trailing `.0` for the generated tag when `append_to_pre_release_tag` is set? We are currently setting the following options:

```
custom_release_rules: "MAJOR:major,MINOR:minor,PATCH:patch"
dry_run: true
append_to_pre_release_tag: ${{ env.branch }}
```

The generated tag ends up coming out similar to `v1.2.3-feature-CO-12345-some-description.0`, which ideally it would come out as `v1.2.3-feature-CO-12345-some-description`. Any guidance would be appreciated. Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the generated tag using the issue's custom_release_rules, dry_run, and append_to_pre_release_tag settings. Trace how the GitHub Action builds the SemVer tag, then verify that the same configuration produces v1.2.3-feature-CO-12345-some-description without the trailing .0.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, typescript
Domain
devops, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.