Merge pull request #9 from brain-hackers/tagname

Generate release name from triggered tag
This commit is contained in:
Takumi Sueda 2021-01-17 20:24:15 +09:00 committed by GitHub
commit 834190745f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ jobs:
steps:
- name: Generate release name
id: release_name
run: echo "::set-output name=name::`date "+%Y-%m-%d-%H%M%S"`"
# https://github.community/t/how-to-get-just-the-tag-name/16241/4
run: echo ::set-output name=name::${GITHUB_REF/refs\/*s\//}
- name: Create release
id: create_release
uses: actions/create-release@v1