David-Rushton / morello.markdown

A .NET library that pretty prints markdown in the console
MIT License
2 stars 0 forks source link

Pushing changes to main fails publish jobs when version remains the same #53

Open David-Rushton opened 2 years ago

David-Rushton commented 2 years ago

Our publish job are fired when:

They tag the commit with a new version number of publish the build.

However some changes don't increment the version. This prevents us from tagging the commit - because the tag already exists.

There are valid reasons to do this. Minor typo fixes in a README for example.

This results in broken badges in NuGet and our READMEs (our shop front :( ).

Options

  1. Add build number to version
  2. Limit jobs to pushes that include code changes (based on file pattern)
  3. Update job to fail gracefully
  4. Force tag to new commit

Linked