Skip to content

Commit 9e860da

Browse files
committed
Release name as output
1 parent 555bac9 commit 9e860da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ jobs:
1414
id: create_tag
1515
run: |
1616
tag=builds-$(date +%Y%m%d-%H%M%S)
17+
release_name="Release $(date '+%Y-%m-%d %H:%M:%S')"
1718
echo "::set-output name=tag::$tag"
19+
echo "::set-output name=release_name::$release_name"
1820
- name: Create Release
1921
id: create_release
2022
uses: actions/create-release@v1
2123
env:
2224
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2325
with:
24-
release_name: Release $(date "+%Y-%m-%d %H:%M:%S")
26+
release_name: ${{ steps.create_tag.outputs.release_name }}
2527
tag_name: ${{ steps.create_tag.outputs.tag }}
2628
draft: false
2729
prerelease: false

0 commit comments

Comments
 (0)