Skip to content

Commit

Permalink
Check against strings
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrukwa committed Dec 29, 2019
1 parent 314a7a0 commit 6ff2004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/actions/patch-version/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ try {
const isBeta = core.getInput('isBeta');
const rawVersion = core.getInput('version');

console.log(isAlpha);

var suffix = "";

if (isAlpha) {
if (isAlpha!="false") {
suffix = "a";
} else if (isBeta) {
} else if (isBeta!="false") {
suffix = "b";
}

Expand Down
6 changes: 2 additions & 4 deletions .github/actions/patch-version/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ try {
const isBeta = core.getInput('isBeta');
const rawVersion = core.getInput('version');

console.log(isAlpha);

var suffix = "";

if (isAlpha) {
if (isAlpha!="false") {
suffix = "a";
} else if (isBeta) {
} else if (isBeta!="false") {
suffix = "b";
}

Expand Down

0 comments on commit 6ff2004

Please sign in to comment.