Skip to content

Commit

Permalink
feat: update publish-test.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Siyaram Meena committed Jul 9, 2024
1 parent 0c6c9c2 commit 8d906b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,16 @@ jobs:
major=$(echo $azure_extension_version | awk -F. '{print $1}')
minor=$(echo $azure_extension_version | awk -F. '{print $2}')
patch=$(echo $azure_extension_version | awk -F. '{print $3}')
echo $major
echo $minor
echo $patch
echo $commit_message
echo "title=$(git log --format=%B -n 1 HEAD | head -n 1)"
commit=$(echo "$commit_message" | awk -F: '{print $1}')
if [[ "$commit" == "BREAKING CHANGE" ]]; then
version=$((major+1)).0.0
elif [[ "$commit" == "feat" ]]; then
version=$major.$((minor+1)).0
elif [[ "$commit" == "fix" ]]; then
version=$major.$minor.$((patch+1))
else
version=$azure_extension_version
fi
echo $version
jq --arg version "$version" '.version = $version' vss-extension-dev.json > vss-extension-dev.json.tmp && mv vss-extension-dev.json.tmp vss-extension-dev.json
Expand Down

0 comments on commit 8d906b5

Please sign in to comment.