Skip to content

Commit

Permalink
codeartifact deploy with version
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaranjanpatil committed Dec 18, 2023
1 parent aaf01dc commit 41e5acd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,15 @@ jobs:
if [ "$CURRENT_VERSION" == "" ]; then
$CURRENT_VERSION = "1.0"
fi
IFS='.' read -ra version_parts <<< "$CURRENT_VERSION"
MAJOR=${version_parts[0]}
MINOR=${version_parts[1]}
NEW_MINOR=$((MINOR + 1))
if [ "$CURRENT_VERSION" == "" ]; then
$NEW_MINOR = "0"
fi
echo "latest_version=$MAJOR.$NEW_MINOR.${{ env.BUILD_ID }}" >> $GITHUB_OUTPUT
- name: Publish JAR file - AWS CodeArtifact
id: ca-deploy
env:
Expand Down

0 comments on commit 41e5acd

Please sign in to comment.