github-tag-action icon indicating copy to clipboard operation
github-tag-action copied to clipboard

Reference already exists

Open saraleungtelus opened this issue 3 years ago • 4 comments

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/[email protected] 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 avatar Apr 26 '22 21:04 saraleungtelus

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

saraleungtelus avatar Apr 26 '22 21:04 saraleungtelus

I'm having the same issue.

popen2 avatar May 03 '22 08:05 popen2

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

pasres avatar May 12 '22 07:05 pasres

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

Kshitiz-devops avatar Nov 14 '22 15:11 Kshitiz-devops