Skip to content

Commit

Permalink
Update blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
asanzo authored Jan 20, 2020
1 parent 00b206e commit 9afae3e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Get version
run: echo "::set-env name=VERSION::$(echo $GITHUB_REF | cut -d'/' -f 3)"
- name: Use version
run: echo The version is $VERSION
- name: Get tag name
run: |
TAGNAME=$(echo $GITHUB_REF | cut -d'/' -f 3)
echo The tag name is $TAGNAME
echo "::set-env name=TAGNAME::$TAGNAME"
- name: Use tag name
run: echo The version is $TAGNAME

0 comments on commit 9afae3e

Please sign in to comment.