mathieudutour / github-tag-action

A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version. Works on any platform.
https://github.com/marketplace/actions/github-tag
MIT License
635 stars 200 forks source link

Reference already exists #126

Open saraleungtelus opened 2 years ago

saraleungtelus commented 2 years ago

My workflow ran successfully once before this. So Previous tag should be v0.0.1. But every push to main now can't detect existing v0.0.1 tag and tries create it again. This workflow is triggered by a push to main branch, I tested the same workflow in another branch is it is working fine.

`Run mathieudutour/github-tag-action@v6.0 with: github_token: *** default_bump: patch release_branches: main custom_release_rules: hotfix:patch,bug:patch,fix:patch,feat:minor,perf:major default_prerelease_bump: prerelease tag_prefix: v create_annotated_tag: false fetch_all_tags: false dry_run: false

Previous tag was v0.0.0, previous version was 0.0.0.

Analysis of 0 commits complete: no release

New version is 0.0.1.

New tag after applying prefix is v0.0.1.

.

Error: Reference already exists`

saraleungtelus commented 2 years ago

I also did commit some code following semver conventions but the workflow didn't pick up the commit.

popen2 commented 2 years ago

I'm having the same issue.

pasres commented 2 years ago

We ran into the same issue and were able to fix it by setting the option: fetch_all_tags: true this way it fetches all tags, instead of only the last 100 and thus is able to analyze commits/determine tag note: this requires v5.6 or higher

Kshitiz-devops commented 1 year ago

This still didn't fix the issue. still getting error reference already exists.