Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Tag Version when Using Releasing in a GitHub action #2471

Open
icirellik opened this issue Aug 19, 2024 · 1 comment
Open

Incorrect Tag Version when Using Releasing in a GitHub action #2471

icirellik opened this issue Aug 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@icirellik
Copy link

icirellik commented Aug 19, 2024

Describe the bug

I am trying to run auto using only the git-tag plugin to release a Terraform module from a GitHub action. When I run auto shipit -vv the action creates an incorrect tag which gets pushed to GitHub. The odd thing is that the changelog is updated with the correct version.

The current release in my repository is v1.0.0, when I run shipit it creates a new tag for v0.0.1 and pushes that while failing to create the GitHub release.

It also updates and pushes the CHANGELOG correctly.

There is no issue if I rule the release locally, and the dry run also determines the correct version to bump.

To Reproduce

I've created a minimal repository that will reproduce the issue.

https://github.com/icirellik/auto-bug

Expected behavior

I would expect a patch release v1.0.1 when the current release is v1.0.0.

Screenshots

Environment information:

Run npx auto info

Environment Information:

"auto" version: v11.2.0
"git"  version: v2.4[6](https://github.com/icirellik/auto-bug/actions/runs/10459809411/job/28964594314#step:6:7).0
"node" version: v20.16.0

Project Information:

✔ Repository:      icirellik/auto-bug (​https://github.com/icirellik/auto-bug​)
✔ Author Name:     Test User
✔ Author Email:    [email protected]
✔ Current Version: v1.0.0
✔ Latest Release:  v1.0.0 (​https://github.com/icirellik/auto-bug/releases/tag/v1.0.0​)

✔ Labels configured on GitHub project 

GitHub Token Information:

✔ Token:            [Token starting with ghp_]
✔ Repo Permission:  admin
✔ User:             icirellik
✔ API:              undefined (​undefined​)
✔ Enabled Scopes:   admin:enterprise, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, audit_log, codespace, copilot, delete:packages, delete_repo, gist, notifications, project, repo, user, workflow, write:discussion, write:packages
✔ Rate Limit:       4[9](https://github.com/icirellik/auto-bug/actions/runs/10459809411/job/28964594314#step:6:10)92/5000

Additional context

@icirellik icirellik added the bug Something isn't working label Aug 19, 2024
@icirellik
Copy link
Author

The bug appears to be related to this line which always errors and returns 0.0.0:

https://github.com/intuit/auto/blob/main/plugins/git-tag/src/index.ts#L21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant