63
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Successful in 6s
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Successful in 6s
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped
This commit is contained in:
@@ -156,6 +156,7 @@ jobs:
|
||||
run: |
|
||||
git fetch --tags
|
||||
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.0')
|
||||
echo $LATEST_TAG
|
||||
|
||||
if [[ $LATEST_TAG =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
|
||||
MAJOR=${BASH_REMATCH[1]}
|
||||
@@ -167,6 +168,8 @@ jobs:
|
||||
PATCH=0
|
||||
fi
|
||||
|
||||
echo $MAJOR.$MINOR.$PATCH
|
||||
|
||||
NEW_PATCH=$((PATCH + 1))
|
||||
NEW_TAG="v${MAJOR}.${MINOR}.${NEW_PATCH}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user