diff --git a/.github/workflows/ci-pipeline-protobuf.yml b/.github/workflows/ci-pipeline-protobuf.yml index afd8f6c..40bd85a 100644 --- a/.github/workflows/ci-pipeline-protobuf.yml +++ b/.github/workflows/ci-pipeline-protobuf.yml @@ -23,4 +23,4 @@ jobs: project: protobuf dotnet_solution: dotnet/protobuf/KinNekoDe.ApiContract.Protobuf.sln golang_module: golang/kinnekode/protobuf - major_minor_patch: 0.2.6 + major_minor_patch: 0.2.7 diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 57b8f2a..7eeb5a8 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -63,9 +63,9 @@ jobs: run: | git fetch --prune --unshallow --tags > /dev/null 2>&1 last_main_version=$(git tag --list '${{ inputs.golang_module }}/v[0-9]*\.[0-9]*\.[0-9]*' | grep -Pv "${{ inputs.golang_module }}/v[0-9]*\.[0-9]*\.[0-9]*-" | sort -V | tail -n 1) - echo "Compare last main version: $last_main_version with current version: ${{ inputs.golang_module }}/v$MAJOR_MINOR_PATCH" - if [[ $(echo -e "${{ inputs.golang_module }}/v$MAJOR_MINOR_PATCH\n$last_main_version" | sort -V | head -n 1) == "${{ inputs.golang_module }}/v$MAJOR_MINOR_PATCH" ]]; then - echo "Please upgrade the version number for ${{ inputs.golang_module }} to a higher value than $last_main_version" + echo "Compare last main version: ${last_main_version} with current version: ${{ inputs.golang_module }}/v${MAJOR_MINOR_PATCH}" + if [[ $(echo -e "${{ inputs.golang_module }}/v${MAJOR_MINOR_PATCH}\n${last_main_version}" | sort -V | head -n 1) == "${{ inputs.golang_module }}/v${MAJOR_MINOR_PATCH}" ]]; then + echo "Please upgrade the version number for ${{ inputs.golang_module }} to a higher value than ${last_main_version}" exit 1 fi # golang