Skip to content

Commit 367901d

Browse files
author
zillionare
committed
🐎ci: debug: try get tag info
1 parent b4726d3 commit 367901d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/dev.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)