From e718e2b11247d0502255d52c411c5fcb8dcf8258 Mon Sep 17 00:00:00 2001 From: Muhammad Noman Date: Wed, 15 Mar 2023 18:36:48 +0500 Subject: [PATCH] ci: Removing v from the tag (#378) * ci: Removing v from the tag --------- Co-authored-by: mnoman09 --- .github/workflows/agent.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 00fa0252..d194a2b6 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -175,7 +175,8 @@ jobs: run: echo ::set-output name=WORKSPACE::${GITHUB_WORKSPACE} - name: set the env run: | - echo "APP_VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV + TAG=${{ steps.get_version.outputs.VERSION }} + echo "APP_VERSION=${TAG#v}" >> $GITHUB_ENV echo "TRAVIS_BUILD_DIR=${{ steps.get_workspace.outputs.WORKSPACE }}" >> $GITHUB_ENV - name: Upload and publish draft env: @@ -239,7 +240,9 @@ jobs: id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF_NAME} - name: set the env - run: echo "APP_VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV + run: | + TAG=${{ steps.get_version.outputs.VERSION }} + echo "APP_VERSION=${TAG#v}" >> $GITHUB_ENV - name: Upload and publish draft shell: bash env: @@ -264,4 +267,3 @@ jobs: if: steps.script.outcome != 'success' run: | SLACK_TEXT="${APP_VERSION} ${{ matrix.os_name }} assets failed verification." send_to_slack.sh -