fix release notes

This commit is contained in:
Chris Titus 2024-09-10 16:49:16 -05:00
parent 0218de3b34
commit 1de35b92d5
2 changed files with 41 additions and 13 deletions

View File

@ -1,5 +1,6 @@
name-template: '$RESOLVED_VERSION' name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION' tag-template: '$RESOLVED_VERSION'
tag-prefix: ""
categories: categories:
- title: '🚀 Features' - title: '🚀 Features'
labels: labels:
@ -10,8 +11,10 @@ categories:
- 'fix' - 'fix'
- 'bugfix' - 'bugfix'
- 'bug' - 'bug'
- title: '🧰 Maintenance' - title: '📚 Documentation'
label: 'chore' label: 'documentation'
- title: '🔒 Security'
label: 'security'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
template: | template: |
## Changes ## Changes
@ -20,4 +23,38 @@ template: |
## Contributors ## Contributors
$CONTRIBUTORS $CONTRIBUTORS
change-title-escapes: '\<*_&"'''
autolabeler:
- label: 'documentation'
files:
- '*.md'
branch:
- '/docs{0,1}\/.+/'
- label: 'bug'
branch:
- '/fix\/.+/'
title:
- '/fix/i'
- label: 'enhancement'
branch:
- '/feature\/.+/'
body:
- '/[A-Z]+-[0-9]+/'
- label: 'documentation'
files:
- '**/*.md'
- 'docs/**/*'
- label: 'security'
branch:
- '/security\/.+/'
replacers:
- search: /"/g
replace: ''
- search: /'/g
replace: ''
- search: /`/g
replace: ''
exclude-labels:
- 'skip-changelog'

View File

@ -33,15 +33,6 @@ jobs:
with: with:
config-name: release-drafter.yml config-name: release-drafter.yml
version: ${{ env.version }} version: ${{ env.version }}
version-template: '$YEAR.$MONTH.$DAY'
- name: Prepare Release Body
id: prepare_body
run: |
new_changes="${{ steps.generate_notes.outputs.body }}"
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$new_changes" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create and Upload Release - name: Create and Upload Release
id: create_release id: create_release
@ -50,7 +41,7 @@ jobs:
tag_name: ${{ env.version }} tag_name: ${{ env.version }}
name: Pre-Release ${{ env.version }} name: Pre-Release ${{ env.version }}
body: | body: |
${{ steps.prepare_body.outputs.body }} ${{ steps.generate_notes.outputs.body }}
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil) ![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)
append_body: false append_body: false