From 6362b94750bc8505a2ba1f6e821dacf9e2c4c461 Mon Sep 17 00:00:00 2001 From: Siyaram Meena Date: Sun, 14 Jul 2024 22:26:09 +0530 Subject: [PATCH] feat: update publish-test.yml file --- .github/workflows/publish-test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-test.yml b/.github/workflows/publish-test.yml index ebf8a27..0112b77 100644 --- a/.github/workflows/publish-test.yml +++ b/.github/workflows/publish-test.yml @@ -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}') @@ -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