Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saranagaoka authored Dec 7, 2023
1 parent 24cfd66 commit cc13f9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
CURRENT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "${VERSION_PREFIX}0.0.0")
echo "CURRENT_TAG: $CURRENT_TAG"
CURRENT_VERSION=${CURRENT_TAG#$VERSION_PREFIX}
IFS='.' read -ra VERSION_PARTS <<< "$CURRENT_VERSION"
VERSION_PARTS=("${VERSION_PARTS[@]/#/}")
VERSION_PARTS=($(echo "$CURRENT_VERSION" | tr "." "\n"))
echo "VERSION_PARTS: ${VERSION_PARTS[@]}"
if [[ "${{ github.ref }}" == "refs/heads/prod" || "${{ github.ref }}" == "refs/heads/master" ]]; then
((VERSION_PARTS[0]++))
Expand Down

0 comments on commit cc13f9e

Please sign in to comment.