This commit is contained in:
Paul Oureib 2024-01-30 10:02:41 +01:00
parent f99244ed56
commit ba6120a631
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ runs:
export VERSION="${{ inputs.major_version }}.${{ inputs.minor_version }}" export VERSION="${{ inputs.major_version }}.${{ inputs.minor_version }}"
export MAJOR_VERSION="${{ inputs.major_version }}" export MAJOR_VERSION="${{ inputs.major_version }}"
export MINOR_VERSION="${{ inputs.minor_version }}" export MINOR_VERSION="${{ inputs.minor_version }}"
elif [ -z ${{ inputs.major_version }} ]; elif [ -z ${{ inputs.major_version }} ]; then
export VERSION="${{ inputs.version }}" export VERSION="${{ inputs.version }}"
export MAJOR_VERSION=$( echo $MAJOR_VERSION | cut -d "-" -f1 ) export MAJOR_VERSION=$( echo $MAJOR_VERSION | cut -d "-" -f1 )
export MINOR_VERSION=$( echo $MAJOR_VERSION | cut -d "-" -f2 ) export MINOR_VERSION=$( echo $MAJOR_VERSION | cut -d "-" -f2 )