File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 23
23
echo "COMMIT_URL=$(git log -1 --pretty=%H)" >> $GITHUB_OUTPUT
24
24
echo "COMMIT_AUTHOR=$(git log -1 --pretty=%an)" >> $GITHUB_OUTPUT
25
25
26
+ - name : Generate tag name
27
+ id : generate_tag_name
28
+ run : |
29
+ echo "TAG_NAME=v$(date +'%Y.%m.%d-%H.%M.%S')" >> $GITHUB_OUTPUT
30
+
26
31
- name : Compress reference_audio folder
27
32
run : |
28
33
zip -r reference_audio.zip res/reference_audio
33
38
env :
34
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
40
with :
36
- tag_name : ${{ github.sha }}
37
- release_name : Release ${{ github.sha }}
41
+ tag_name : ${{ steps.generate_tag_name.outputs.TAG_NAME }}
42
+ release_name : Release ${{ steps.generate_tag_name.outputs.TAG_NAME }}
38
43
body : |
39
44
最新提交: ${{ steps.get_commit_info.outputs.COMMIT_MESSAGE }}
40
45
链接: https://github.com/${{ github.repository }}/commit/${{ steps.get_commit_info.outputs.COMMIT_URL }}
You can’t perform that action at this time.
0 commit comments