Code Monkey home page Code Monkey logo

increment-semantic-version's Introduction

Hi there, I'm Chris and a coder by heart ๐Ÿ‘‹๐Ÿ‘จโ€๐Ÿ’ป

๐Ÿ”ญ Besides being a loving father, passionate gardener and woodworker, I am working on skrape{it} in my free time.

๐Ÿ”‘ I am an Open Source enthusiast and interested in ethical topics around the Web.

๐Ÿ“ซ How to reach me: [email protected]

My activities this year

stats

My Key Skills / Focus Topics

  • Web Technologies
    • Feeling at home on the JVM (preferring Kotlin) as well as creating SPAs with React
    • Animations in the Web either with CSS or JS
    • create a snappy, easy to use and modern UX
  • Designing Microservices/APIs
  • Strong Collaborative Skills
  • Clean Code and TDD
  • CI/CD and all that comes with it
  • Testautomation
    • deep knowledge regarding testing frameworks and libraries in all levels of testing on the JVM
    • Automated UI tests with Selenium/Appium/Cypress/Protractor
  • Agile Architecture and DevOps
    • Buildautomation with Gradle/Maven as well as Parcel/Webpack
    • Server provisioning with Ansible/Puppet
    • Kubernetes with Helm and Containerization in general
Get in Contact

I am always keen to talk to other techies, please feel free to get in touch on any of the following.

GitHub Twitter LinkedIn

increment-semantic-version's People

Contributors

christian-draeger avatar linuxidefix avatar martinbeentjes avatar mhristof avatar saito-ya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

increment-semantic-version's Issues

Missing dot (.) in pre-release versioning

As in https://semver.org/ stated a pre-release (alpha, beta, rc) is appended by a series of dot-separated identifiers:

<pre-release> ::= <dot-separated pre-release identifiers>
<dot-separated build identifiers> ::= <build identifier>
                                    | <build identifier> "." <dot-separated build identifiers>

Currently pre-releases are not separated with dot-separated identifiers. So instead of 2.11.7-rc1 it should be 2.11.7-rc.1

Feature: Adding build data

Hi

Thanks @christian-draeger for your excellent work on this action. Simple yet effective solution to a common annoyance of setting up automatic versioning.

I quickly noticed that I need to be able to add build number to the version string, so I added the needed logic for that in a forked repo (TLii/increment-semantic-version-with-build-data). All changes are (should be) non-breaking.

Before I open a pull request, do you see this as a feature that should or could be added to the upstream, or shall I keep it a separate fork?

Alpha/Beta/RC releases fail because of null value in preversion variable

There is a bug in the action. When executing an alpha, beta or rc release on a non-alpha/non-beta/non-rc release (e.g. 0.14.0) the preversion variable is null. Therefore the script will fail with the following message:

##[error]Docker run failed with exit code 1

I wrote a tiny script copying the behavior:

#!/usr/bin/bash -l

prev_version="$1"; releaseType="$2"

# break down the version number into it's components
regex="^([0-9]+).([0-9]+).([0-9]+)((-[a-z]+)([0-9]+))?$"
if [[ $prev_version =~ $regex ]]; then
  major="${BASH_REMATCH[1]}"
  minor="${BASH_REMATCH[2]}"
  build="${BASH_REMATCH[3]}"
  pre="${BASH_REMATCH[5]}"
  preversion="${BASH_REMATCH[6]}"
else
  echo "previous version '$prev_version' is not a symantic version"
  exit 1
fi

echo "major is $major"
echo "minor is $minor"
echo "build is $build"
echo "pre is $pre"
echo "preversion is $preversion"

Executing . ./testregex.sh 0.14.0 alpha results in:

major is
minor is
build is
pre is
preversion is

using an environment variable as the current_version

Hi,
I'm trying for some time now to make the incremental versioning automatic by passing the previous version to the plugin as the current_version, but it keeps giving the error "previous version '$ENV' is not a semantic version.
I made sure that the value of environment variable (ENV) is actually a valid semantic version (1.0.6) by printing it in different steps.
Is there anything I need to know regarding this issue?

Alpha/Beta/RC releases fail because of there is no incrementation of `preversion` variable

It seems there is bug in version 1.0.1.
If use action like this

      - name: Bump release version
        id: bump_version2
        uses: christian-draeger/[email protected]
        with:
          current-version: '1.15.2-alpha4'
          version-fragment: 'alpha'

then result will be:

Run christian-draeger/[email protected]
  with:
    current-version: 1.15.2-alpha4
    version-fragment: alpha
create alpha-release version: 1.15.2-alpha4 -> 1.15.2-alpha1

The same for beta and rc

Allow 'v' in front of versions

Hi!

Would it be possible to add support for versions that have a v in front? Would be great!

I tried this by passing v1.5.0 but that fails with

previous version 'v1.5.0' is not a semantic version

Incrementing based on the previous version without specifying it

Hi,

if tested many actions and could not get anything really working without a hassle except for this one, thank you.

It seems to require to s specify the current version manually and does not fetch it from the tags automatically. So if you make changes, you need to set the currentVersion manually, otherwise this action will do nothing.

Am I missing something or is this really how it works?

got no output from action

I was using this action (version 1.1.0) in other workflow and it worked fine, but now with the same version I see no output from action.
If you have some thoughts on it please tell me, what could cause this strange behavior.
I attached screenshot with logs of step bump-version (it seems to be ok) and the result of echo ${{ toJSON(steps) }}

Screenshot 2023-03-21 at 17 56 00

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.