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 14, 2024
1 parent 66c6d41 commit 6362b94
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ jobs:
commit_message: ${{ github.event.head_commit.message }}
run: |
name="Synopsys-security-scan"
echo $name
echo "EXTENSION_NAME=$name"
vss_extension_dev=$(cat vss-extension-dev.json)
azure_extension_version=$(echo $vss_extension_dev | jq -r '.version')
echo $azure_extension_version
echo "current version: " $azure_extension_version
echo "CURRENT_VERSION=$azure_extension_version" >> $GITHUB_ENV
major=$(echo $azure_extension_version | awk -F. '{print $1}')
minor=$(echo $azure_extension_version | awk -F. '{print $2}')
Expand All @@ -49,13 +48,13 @@ jobs:
echo $COMMIT_MESSAGE_HEADER
if [[ "$COMMIT_MESSAGE" == "BREAKING CHANGE" ]]; then
version=$((major+1)).0.0
echo "updating extension version"
echo "updating extension version $azure_extension_version to $version"
elif [[ "$COMMIT_MESSAGE" == "feat" ]]; then
version=$major.$((minor+1)).0
echo "updating extension version"
echo "updating extension version $azure_extension_version to $version"
elif [[ "$COMMIT_MESSAGE" == "fix" ]]; then
version=$major.$minor.$((patch+1))
echo "updating extension version"
echo "updating extension version $azure_extension_version to $version"
else
version=$azure_extension_version
fi
Expand Down

0 comments on commit 6362b94

Please sign in to comment.