Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Rabatta-ApS/versionBumping-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.2
Choose a base ref
...
head repository: Rabatta-ApS/versionBumping-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 3 commits
  • 1 file changed
  • 1 contributor

Commits on Feb 24, 2022

  1. Copy the full SHA
    e075e0f View commit details

Commits on Mar 14, 2022

  1. Copy the full SHA
    3c4ab16 View commit details
  2. refixed regex

    Fatdet committed Mar 14, 2022
    Copy the full SHA
    d965155 View commit details
Showing with 1 addition and 2 deletions.
  1. +1 −2 index.js
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@ async function main(){

if(mode == "GET_VERSION"){
cur_ver = getVersion(pathToVersionFile);
new_ver = await updateVersion(cur_ver);
}
else if(mode == "BUMP_VERSION"){
cur_ver = getVersion(pathToVersionFile);
@@ -59,7 +58,7 @@ function getVersion(pathToFile){
async function updateVersion(version){
const labels = await getLabels();

const versionNumbers = version.match(/\d/g);
const versionNumbers = version.match(/\d+/g);
for(let i = 0; i < versionNumbers.length; i++){
versionNumbers[i] = Number.parseInt(versionNumbers[i]);
}