Skip to content

Commit 54b5f1e

Browse files
Fix: build was not triggering on pushing tags (#360)
* test * test * test * allowing all tags * test * Reverting extra changes --------- Co-authored-by: mnoman09 <m.nomanshoaib09@gmail.com>
1 parent 76f9fba commit 54b5f1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/agent.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ master ]
66
tags:
7-
- 'v[0-9]+.[0-9]+.[0-9]+(-beta)?[0-9]+'
7+
- 'v[0-9]+.[0-9]+.[0-9]+(-beta)?[0-9]*'
88
pull_request:
99
branches: [ master ]
1010

@@ -166,7 +166,7 @@ jobs:
166166
ref: 'master'
167167
- name: Get the version
168168
id: get_version
169-
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
169+
run: echo ::set-output name=VERSION::${GITHUB_REF_NAME}
170170
- name: Get current workspace path
171171
id: get_workspace
172172
run: echo ::set-output name=WORKSPACE::${GITHUB_WORKSPACE}
@@ -225,7 +225,7 @@ jobs:
225225
ref: 'master'
226226
- name: Get the version
227227
id: get_version
228-
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
228+
run: echo ::set-output name=VERSION::${GITHUB_REF_NAME}
229229
- name: set the env
230230
run: echo "APP_VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
231231
- name: Upload and publish draft

0 commit comments

Comments
 (0)