This commit is contained in:
orz12
2024-08-12 23:28:13 +08:00
4 changed files with 14 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
---
name: Bug 反馈
about: 描述你所遇到的bug
title: ''
labels: 问题反馈
assignees: orz12
title: "[Bug] "
labels: bug
assignees: ''
---

View File

@@ -1,9 +1,9 @@
---
name: 功能请求
about: 对于功能的一些建议
title: ''
labels: 功能
assignees: orz12
title: "[FR] "
labels: enhancement
assignees: ''
---

View File

@@ -20,6 +20,7 @@ jobs:
outputs:
# 定义输出变量 version以便在其他job中引用
new_version: ${{ steps.get-last-tag.outputs.tag}}
last_commit: ${{ steps.get-last-commit.outputs.last_commit }}
steps:
- name: Checkout code
@@ -27,6 +28,12 @@ jobs:
with:
fetch-depth: 0
- name: 获取最后一次提交
id: get-last-commit
run: |
last_commit=$(git log -1 --pretty="%h %s" --first-parent)
echo "last_commit=$last_commit" >> $GITHUB_OUTPUT
- name: 获取最后一个tag
id: get-last-tag
run: |

View File

@@ -156,7 +156,7 @@ jobs:
- name: Upload Release
uses: ncipollo/release-action@v1
with:
name: v${{ steps.version.outputs.version }}
name: ${{ steps.version.outputs.version }}
token: ${{ secrets.GIT_TOKEN }}
omitBodyDuringUpdate: true
omitNameDuringUpdate: true