From 92336edfc3765fe76da0884653e22b52e688ec0b Mon Sep 17 00:00:00 2001 From: May <110405507+paul-oureib@users.noreply.github.com> Date: Wed, 31 Jan 2024 16:49:28 +0100 Subject: [PATCH] Update .github/actions/package-nfpm/action.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Stéphane Chapron <34628915+sc979@users.noreply.github.com> --- .github/actions/package-nfpm/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/package-nfpm/action.yml b/.github/actions/package-nfpm/action.yml index 77b9c1dd7..ae5d9f64b 100644 --- a/.github/actions/package-nfpm/action.yml +++ b/.github/actions/package-nfpm/action.yml @@ -71,7 +71,7 @@ runs: export MINOR_VERSION="${{ inputs.minor_version }}" elif [ -z ${{ inputs.major_version }} ]; then export VERSION="${{ inputs.version }}" - export MAJOR_VERSION=$( echo $MAJOR_VERSION | cut -d "-" -f1 ) + export MAJOR_VERSION=$( echo $VERSION | cut -d "-" -f1 ) export MINOR_VERSION=$( echo $MAJOR_VERSION | cut -d "-" -f2 ) fi export RELEASE="${{ inputs.release }}"