Giter VIP home page Giter VIP logo

autorelease-tagger-action's People

Contributors

jesse-cameron avatar lukestephenson-zendesk avatar timbertson avatar timbertson-zd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zendesk

autorelease-tagger-action's Issues

Next version can clash with existing tag

With the following sequence:

  • user creates pr against master, branching off v1.0.0
  • new commits are made on master, causing release of v1.1.0
  • git describe for your PR build is based off the HEAD commit, which doesn't contain v1.1.0. It reports your current version as v1.0.0 and bumps to v1.1.0, and the git tag immediately fails.

Possible fixes / workarounds:

  • merge master into your PR and then re-run, but that's awkward and frustrating on a fast-moving codebase.
  • for a PR, don't actually perform a tag. On merge the logic will typically work fine.
  • attempt to merge in the main branch right before we detect the current version (but only for a PR)
  • for a PR, run describe on the destination branch instead of HEAD

Similar issues on push:

There's a risk of this being a problem on master too, if you have multiple jobs trying to bump the version concurrently. But:

  • if the newer commit ends up getting tagged first, you've got a failed job but that commit is included in the latest release (so it likely doesn't matter)
  • if the older commit ends up getting tagged first, re-running the job will succeed because the previously-unknown tag will be visible to git describe.

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.