diff --git a/.github/actions/package-nfpm/action.yml b/.github/actions/package-nfpm/action.yml index 00fdd25e1..cc3d24650 100644 --- a/.github/actions/package-nfpm/action.yml +++ b/.github/actions/package-nfpm/action.yml @@ -93,8 +93,8 @@ runs: fi if [ -z "$MAJOR_VERSION" ]; then - MAJOR_LEFT=$( echo $MAJOR_VERSION | cut -d "." -f1 ) - MAJOR_RIGHT=$( echo $MAJOR_VERSION | cut -d "-" -f1 | cut -d "." -f2 ) + MAJOR_LEFT=$( echo $VERSION | cut -d "." -f1 ) + MAJOR_RIGHT=$( echo $VERSION | cut -d "-" -f1 | cut -d "." -f2 ) if [ "$MAJOR_RIGHT" == "04" ]; then BUMP_MAJOR_LEFT="$MAJOR_LEFT" BUMP_MAJOR_RIGHT="10"