👷 update ci config

This commit is contained in:
yanyongyu 2022-02-16 11:10:54 +08:00
parent 962c71ea4e
commit 987e44e1d0
No known key found for this signature in database
GPG Key ID: 796D8A7FB73396EB
4 changed files with 14 additions and 20 deletions

View File

@ -1,37 +1,31 @@
header: | template: $CHANGES
### Documentation
See: https://v2.nonebot.dev
template: |
### 💫 Changes
$CHANGES
category-template: "### $TITLE" category-template: "### $TITLE"
name-template: "Release v$RESOLVED_VERSION 🌈" name-template: "Release v$RESOLVED_VERSION 🌈"
tag-template: "v$RESOLVED_VERSION" tag-template: "v$RESOLVED_VERSION"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)" change-template: "- $TITLE [@$AUTHOR](https://github.com/$AUTHOR) ([#$NUMBER]($URL))"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. change-title-escapes: '\<&'
categories: categories:
- title: "💥 Breaking Changes" - title: "💥 破坏性变更"
labels: labels:
- "Breaking" - "Breaking"
- title: "🚀 Features" - title: "🚀 新功能"
labels: labels:
- "feature" - "feature"
- "enhancement" - "enhancement"
- title: "🐛 Bug Fixes" - title: "🐛 Bug 修复"
labels: labels:
- "fix" - "fix"
- "bugfix" - "bugfix"
- "bug" - "bug"
- title: "📝 Documentation" - title: "📝 文档"
labels: labels:
- "documentation" - "documentation"
- title: "🍻 Plugin Publish" - title: "💫 杂项"
- title: "🍻 插件发布"
label: "Plugin" label: "Plugin"
- title: "🍻 Bot Publish" - title: "🍻 机器人发布"
label: "Bot" label: "Bot"
- title: "🍻 Adapter Publish" - title: "🍻 适配器发布"
label: "Adapter" label: "Adapter"
version-resolver: version-resolver:
major: major:

View File

@ -20,7 +20,7 @@ jobs:
token: ${{ secrets.GH_TOKEN }} token: ${{ secrets.GH_TOKEN }}
- name: NoneBot2 Publish Bot - name: NoneBot2 Publish Bot
uses: nonebot/nonebot2-publish-bot@main uses: docker://ghcr.io/nonebot/nonebot2-publish-bot:main
with: with:
token: ${{ secrets.GH_TOKEN }} token: ${{ secrets.GH_TOKEN }}
config: > config: >

View File

@ -23,7 +23,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Changelog - name: Update Changelog
uses: docker://nonebot/auto-changelog:master uses: docker://ghcr.io/nonebot/auto-changelog:master
with: with:
changelog_file: website/src/pages/changelog.md changelog_file: website/src/pages/changelog.md
latest_changes_position: '# 更新日志\n\n' latest_changes_position: '# 更新日志\n\n'

View File

@ -28,7 +28,7 @@ jobs:
- run: echo "TAG_NAME=v$(poetry version -s)" >> $GITHUB_ENV - run: echo "TAG_NAME=v$(poetry version -s)" >> $GITHUB_ENV
- name: Archive Changelog - name: Archive Changelog
uses: docker://nonebot/auto-changelog:master uses: docker://ghcr.io/nonebot/auto-changelog:master
with: with:
changelog_file: website/src/pages/changelog.md changelog_file: website/src/pages/changelog.md
archive_title: ${{ env.TAG_NAME }} archive_title: ${{ env.TAG_NAME }}