File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,16 +26,16 @@ jobs:
2626
2727 # Steps represent a sequence of tasks that will be executed as part of the job
2828 steps :
29- - name : Set output
30- id : vars
31- run : echo ::set-output name=tag::${GITHUB_REF#refs/*/}
29+ - uses : olegtarasov/get-tag@v2.1
30+ id : tagName
31+ with :
32+ tagRegex : " foobar-(.*)" # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined.
33+ tagRegexGroup : 1 # Optional. Default is 1.
3234
3335 - name : Check output
34- env :
35- RELEASE_VERSION : ${{ steps.vars.outputs.tag }}
36- run : |
37- echo $RELEASE_VERSION
38- echo ${{ steps.vars.outputs.tag }}
36+ with :
37+ tagname : ${{ steps.tagName.outputs.tag }}
38+ run : echo ${{ tagname }}
3939
4040 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
4141 - uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments