update workflow

This commit is contained in:
fujr 2025-04-14 14:18:57 +08:00
parent 0d0ff1d4b8
commit 83e943c843

View File

@ -42,7 +42,7 @@ jobs:
id: get_tag_info id: get_tag_info
run: | run: |
cd qmodem cd qmodem
TAG_MESSAGE=$(git for-each-ref refs/tags/${{ env.tag_name }} --format='%(contents)') TAG_MESSAGE=$(git tag -l --format='%(contents)' "${{ env.tag_name }}")
echo "tag_message=${TAG_MESSAGE}" >> $GITHUB_ENV echo "tag_message=${TAG_MESSAGE}" >> $GITHUB_ENV
@ -166,5 +166,5 @@ jobs:
with: with:
body: ${{ needs.job_prepare.outputs.tag_message }} body: ${{ needs.job_prepare.outputs.tag_message }}
tag_name: ${{ needs.job_prepare.outputs.tag_name }} tag_name: ${{ needs.job_prepare.outputs.tag_name }}
prerelease: ${{ needs.job_prepare.outputs.tag_name == '*-beta' || needs.job_prepare.outputs.tag_name == '*-rc' }} prerelease: ${{ contains(needs.job_prepare.outputs.tag_name, '-beta') || contains(needs.job_prepare.outputs.tag_name, '-rc') }}
files: releases/* files: releases/*