Skip to content

Commit

Permalink
Fix the missing majorVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSiu1995 committed Aug 24, 2021
1 parent 4765d4c commit 87dbd12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ async function run() {
const kubebuilderOnly = core.getInput('kubebuilderOnly') === 'true';
let etcdVersion = core.getInput('etcdVersion');
let kubernetesVersion = core.getInput('kubernetesVersion');
let majorVersion;
if (!defaultBranch.includes(version)) {
const majorVersion = version.split(".")[0];
majorVersion = version.split(".")[0];
} else {
// Set this as infinitely large
majorVersion = 999
}

if (kubebuilderOnly && etcdVersion) {
Expand Down

0 comments on commit 87dbd12

Please sign in to comment.