mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 12:58:11 +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_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
|
- name: Generate Release Notes
|
||||||
run: |
|
run: |
|
||||||
rm -rf log
|
rm -rf log
|
||||||
newTag=${{ steps.last_tag.outputs.tag_last }}
|
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
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.last_tag.outputs.tag_last }}
|
tag_name: ${{ steps.last_tag.outputs.tag_last }}
|
||||||
release_name: Release ${{ 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
|
for /f "delims=" %%i in ('git tag') do git tag -d %%i
|
||||||
|
|
||||||
echo All tags deleted.
|
echo All tags deleted.
|
||||||
pause
|
pause
|
||||||
Loading…
x
Reference in New Issue
Block a user