Giter VIP home page Giter VIP logo

Comments (10)

 avatar commented on August 17, 2024 1

Not sure why that is happening. I just know that I made the script abort the deleting if it found lots of tags because if everything is working properly there should be only one, and when you see unexpected state it's usually not the best course of action to delete everything you see :)

Are you pushing all your local tags to the remote repo or something like that? I'm wondering whether something like that could be causing this.

from build-number.

 avatar commented on August 17, 2024

Sorry, don't know why that happens. Can you check the logs of the last few runs, does it say anything about deleting old tags?

from build-number.

y-ohno-p avatar y-ohno-p commented on August 17, 2024

I am getting the same error.

Error: ERROR: Too many my-build-number- refs in repository, found 7, expected only 1. Check your tags!

I check out the repository, modify the source code, and push it.
Then multiple tags are present and an error occurs.

Do I have to delete the old tags locally before pushing?

from build-number.

y-ohno-p avatar y-ohno-p commented on August 17, 2024

Problem solved.

I am using Sourcetree as my git client.
The "Push all tags to remotes" setting was turned on.

Thank you for your advice.
image

from build-number.

 avatar commented on August 17, 2024

Ah, that makes sense. Thanks for letting me know.

from build-number.

Zyther avatar Zyther commented on August 17, 2024

I am finding similar cases of this issue in my repositories when Visual Studio is used as the primary git client

from build-number.

 avatar commented on August 17, 2024

@Zyther Ok, is there an option there to not push all tags to remotes?

from build-number.

Zyther avatar Zyther commented on August 17, 2024

Thanks all, resolved on my end

from build-number.

mitkokostakev avatar mitkokostakev commented on August 17, 2024

Hi guys,
so the solution is to remove all tags? Is there another way to solve this issue in case we need to keep the tags in git repo?

from build-number.

 avatar commented on August 17, 2024

@mitkokostakev really the best solution is to stop using this action and use the $GITHUB_RUN_NUMBER environment variable for build numbers (+ add some offset to it if you need to maintain an old build number).

from build-number.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.