Skip to content

Commit

Permalink
- add brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
KinNeko-De committed Apr 10, 2024
1 parent e109b77 commit 8d390bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-pipeline-protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d390bf

Please sign in to comment.