Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
👷 自动发布标题改为版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiYu-233 committed May 11, 2024
1 parent 6940fff commit 6bc3611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
run: |
echo "date=$(date +'%Y-%m-%d.%H-%M-%S')" >> $GITHUB_OUTPUT
echo "$(date +'%Y.%m.%d.%H.%M')" > ./YMCL.Main/Public/Text/DateTime.txt
echo "title=$(date +'%Y.%m.%d.%H.%M')" >> $GITHUB_OUTPUT
shell: bash
- name: Build
run: |
Expand All @@ -30,7 +31,7 @@ jobs:
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.TOKEN }}"
title: "${{ github.event.commits[0].message }}"
title: "v${{ steps.date.outputs.title }}"
automatic_release_tag: "AutoRelease-${{ steps.date.outputs.date }}"
prerelease: true
files: |
Expand Down

0 comments on commit 6bc3611

Please sign in to comment.