diff --git a/.github/workflows/_meta.yaml b/.github/workflows/_meta.yaml index 57e95ee1597..129adf25524 100644 --- a/.github/workflows/_meta.yaml +++ b/.github/workflows/_meta.yaml @@ -73,7 +73,7 @@ jobs: const tag = context.ref.substring(10) const no_v = tag.replace('v', '') const dash_index = no_v.lastIndexOf('-') - const major_index = no_v.firstIndexOf('.') + const major_index = no_v.indexOf('.') const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v const major = (major_index > -1) ? no_v.substring(0, major_index) : no_v core.setOutput('tag', tag) diff --git a/.github/workflows/_meta_mac_portable.yaml b/.github/workflows/_meta_mac_portable.yaml index dd2ce61ceef..88531e80f9e 100644 --- a/.github/workflows/_meta_mac_portable.yaml +++ b/.github/workflows/_meta_mac_portable.yaml @@ -67,7 +67,7 @@ jobs: const tag = context.ref.substring(10) const no_v = tag.replace('v', '') const dash_index = no_v.lastIndexOf('-') - const major_index = no_v.firstIndexOf('.') + const major_index = no_v.indexOf('.') const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v const major = (major_index > -1) ? no_v.substring(0, major_index) : no_v core.setOutput('tag', tag) diff --git a/.github/workflows/_meta_portable.yaml b/.github/workflows/_meta_portable.yaml index e0ecc36b300..9ef73d6325a 100644 --- a/.github/workflows/_meta_portable.yaml +++ b/.github/workflows/_meta_portable.yaml @@ -63,7 +63,7 @@ jobs: const tag = context.ref.substring(10) const no_v = tag.replace('v', '') const dash_index = no_v.lastIndexOf('-') - const major_index = no_v.firstIndexOf('.') + const major_index = no_v.indexOf('.') const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v const major = (major_index > -1) ? no_v.substring(0, major_index) : no_v core.setOutput('tag', tag)