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

Commit

Permalink
added release:none to abort version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatdet committed Feb 16, 2022
1 parent e12f6a1 commit 33e5f6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async function updatedManifestVersion(version){
versionNumbers[i] = Number.parseInt(versionNumbers[i]);
}

let noRelease = false;
for(const label of labels){
core.debug(label);
if(label == "release:major"){
Expand All @@ -55,8 +56,13 @@ async function updatedManifestVersion(version){
else if(label == "release:patch"){
versionNumbers[2]++;
}
else if(label == "release:none"){
noRelease = true;
}
}

core.setOutput('no-release', noRelease);

const versionString = `${versionNumbers[0]}.${versionNumbers[1]}.${versionNumbers[2]}`;

return versionString;
Expand Down

0 comments on commit 33e5f6a

Please sign in to comment.