Skip to content

Commit 2a75f3f

Browse files
committed
change release to date time
1 parent f5a320e commit 2a75f3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v1
1212
name: Checkout Code
13-
- name: Set variables
13+
- name: Get tag
1414
id: vars
15-
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
15+
run: echo "::set-output name=tag::$(date +'%Y%m%d-%H%M%S')-$(git rev-parse --short HEAD)"
1616
- name: Create Release
1717
id: create_release
1818
uses: actions/create-release@v1
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121
with:
22-
tag_name: ${{ steps.vars.outputs.sha_short }}
23-
release_name: Release ${{ steps.vars.outputs.sha_short }}
22+
tag_name: ${{ steps.vars.outputs.tag }}
23+
release_name: Release ${{ steps.vars.outputs.tag }}
2424
draft: false
2525
prerelease: false
2626

0 commit comments

Comments
 (0)