Giter Club home page Giter Club logo

is-newer-version's Introduction

@ForesightMiningSoftwareCorporation/is-newer-version

GitHub Action designed to compare two semantic version numbers and determine whether the version has been updated based on its release type (major, minor, or patch).

is-newer-version status

Usage

- uses: @ForesightMiningSoftwareCorporation/is-newer-version@v1
  with:
    before: '1.0.0'
    after: '1.1.0'
    release_type: 'minor'

Inputs

Name Description Required Default
before The original semantic version number to compare against. It should be provided as a string in the format "X.Y.Z" where X, Y, and Z are integers representing the major, minor, and patch versions respectively. true N/A
after The new semantic version number to compare against. It should be provided as a string in the same format as the before input. true N/A
release_type The release type to use when comparing the two versions. It should be provided as a string that is either "major", "minor", or "patch". If "major" is selected, the action will consider any change in the major version number to be an update. If "minor" is selected, the action will consider changes in the major or minor version numbers to be an update. Finally, if "patch" is selected, the action will only consider changes in the patch version number to be an update. false 'patch'

Outputs

Name Description
newer The release type to use when comparing the two versions. It should be provided as a string that is either "major", "minor", or "patch". If "major" is selected, the action will consider any change in the major version number to be an update. If "minor" is selected, the action will consider changes in the major or minor version numbers to be an update. Finally, if "patch" is selected, the action will only consider changes in the patch version number to be an update.

License

This GitHub Action is licensed under the MIT License.

is-newer-version's People

Contributors

loispostula avatar dependabot[bot] avatar

Watchers

Sébastien Crozet avatar Alexander Sepity avatar

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.