mathieudutour / mathieudutour/github-tag-action

Bug: default_bump not respected + unwanted text added to tag

Open
#174 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
733
Forks
227
PR merge metrics
No merged PRs in 30d

Description

This action does not seem to work correctly.

```yaml
- id: tag_version
name: Tag
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: "major" # also tried, major, minor
tag_prefix: ""
```

Using this in a normal action with the latest tag available in my repo = `1.54.0` results in creating
a `new_tag` by this action:

`1.54.1-workflow.0`

which is not correct, as the expected result should be `2.0.0`
1. Major version is not incremented, the option is not respected
2. a Post text is applied: `-workflow.0``

EDIT:
v5.5 does it correctly, though it also attaches the anoying `-workflow.0` at the end of the tag

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the shown GitHub Actions configuration with version 6.1 and compare it with v5.5; the fix is complete when default_bump: major produces 2.0.0 from 1.54.0 without the -workflow.0 suffix.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, typescript
Domain
ci-cd, 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.