mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 04:48:10 +08:00
fix: 更新 GithubActions 配置
This commit is contained in:
parent
fedac28882
commit
e880d79ccb
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -43,19 +43,19 @@ jobs:
|
||||
|
||||
# 设置输出变量
|
||||
echo "::set-output name=tag_last::${LATEST_TAG:-v1.0.0}"
|
||||
echo "::set-output name=tag_cmd::-S ${SECOND_LATEST_TAG:-v1.0.0} "
|
||||
echo "::set-output name=tag_second::${SECOND_LATEST_TAG:-v1.0.0}"
|
||||
|
||||
- name: Generate Release Notes
|
||||
run: |
|
||||
rm -rf log
|
||||
newTag=${{ steps.last_tag.outputs.tag_last }}
|
||||
git-log -m tag -f ${{ steps.last_tag.outputs.tag_cmd }}-v ${newTag#v}
|
||||
git-log -m tag -f -S ${{ steps.last_tag.outputs.tag_second }} -v ${newTag#v}
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.last_tag.outputs.tag_last }}
|
||||
release_name: Release ${{ steps.last_tag.outputs.tag_last }}
|
||||
|
||||
@ -10,4 +10,4 @@ echo Deleting local tags...
|
||||
for /f "delims=" %%i in ('git tag') do git tag -d %%i
|
||||
|
||||
echo All tags deleted.
|
||||
pause
|
||||
pause
|
||||
Loading…
x
Reference in New Issue
Block a user