Skip to content

Commit e718e2b

Browse files
ci: Removing v from the tag (#378)
* ci: Removing v from the tag --------- Co-authored-by: mnoman09 <[email protected]>
1 parent fe496e1 commit e718e2b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/agent.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ jobs:
175175
run: echo ::set-output name=WORKSPACE::${GITHUB_WORKSPACE}
176176
- name: set the env
177177
run: |
178-
echo "APP_VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
178+
TAG=${{ steps.get_version.outputs.VERSION }}
179+
echo "APP_VERSION=${TAG#v}" >> $GITHUB_ENV
179180
echo "TRAVIS_BUILD_DIR=${{ steps.get_workspace.outputs.WORKSPACE }}" >> $GITHUB_ENV
180181
- name: Upload and publish draft
181182
env:
@@ -239,7 +240,9 @@ jobs:
239240
id: get_version
240241
run: echo ::set-output name=VERSION::${GITHUB_REF_NAME}
241242
- name: set the env
242-
run: echo "APP_VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
243+
run: |
244+
TAG=${{ steps.get_version.outputs.VERSION }}
245+
echo "APP_VERSION=${TAG#v}" >> $GITHUB_ENV
243246
- name: Upload and publish draft
244247
shell: bash
245248
env:
@@ -264,4 +267,3 @@ jobs:
264267
if: steps.script.outcome != 'success'
265268
run: |
266269
SLACK_TEXT="${APP_VERSION} ${{ matrix.os_name }} assets failed verification." send_to_slack.sh
267-

0 commit comments

Comments
 (0)