mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 01:18:19 +08:00
👷 prepare for changelog automation
This commit is contained in:
parent
8f38fc5795
commit
6ceaf51af7
16
.github/workflows/release-drafter.yml
vendored
16
.github/workflows/release-drafter.yml
vendored
@ -2,22 +2,31 @@ name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- v*
|
||||
pull_request_target:
|
||||
branches:
|
||||
- master
|
||||
types:
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
update-release-draft:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
if: github.event_name == 'pull_request_target'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
id: release-drafter
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# TODO
|
||||
- name: Update Changelog
|
||||
run: |
|
||||
echo ${{ steps.release-drafter.outputs.body }}
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-latest
|
||||
@ -37,7 +46,6 @@ jobs:
|
||||
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
id: release-drafter
|
||||
with:
|
||||
name: Release ${{ env.TAG_NAME }} 🌈
|
||||
tag: ${{ env.TAG_NAME }}
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -25,6 +25,10 @@ jobs:
|
||||
- name: Archive Files
|
||||
run: yarn archive $(poetry version -s)
|
||||
|
||||
# TODO
|
||||
- name: Archive Changelog
|
||||
run: cat CHANGELOG.md
|
||||
|
||||
- name: Push Tag
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
|
@ -4,7 +4,7 @@ description: Changelog
|
||||
|
||||
# 更新日志
|
||||
|
||||
## v2.0.0b2
|
||||
## Latest Changes
|
||||
|
||||
- 修复 `receive`, `got` 在参数为空消息时依旧会反复询问
|
||||
- 修复文档商店分页显示错误
|
||||
|
Loading…
Reference in New Issue
Block a user