File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ jobs:
103103 return
104104 }
105105 // Find the version tag
106- var version_tag = github .ref.replace("refs/tags/", "")
106+ var version_tag = context .ref.replace("refs/tags/", "")
107107 console.log(version_tag)
108108 // Store it in the step output variables
109109 core.setOutput('version_tag', version_tag)
@@ -130,18 +130,6 @@ jobs:
130130 })
131131 */
132132
133-
134- # - id: get-branch-version-tag
135- # uses: actions/github-script@v4
136- # with:
137- # script: |
138- # var version_tag = ''
139- # if (github.ref.startsWith('refs/tags/v')){
140- # version_tag = github.ref.split('/')[2]
141- # }
142- # core.setOutput('version_tag', version_tag)
143- # if: startsWith(github.ref, 'refs/tags/v')
144-
145133 - run : echo "branch version tag is ${{steps.get-branch-version-tag.outputs.version_tag}}"
146134
147135 # We might be able to use the github script action instead of this to script what we need to do in one go
You can’t perform that action at this time.
0 commit comments