chore: update release drafter configuration and workflow to v6

This commit is contained in:
Dr-Blank 2024-09-18 01:38:02 -04:00
parent 9733951296
commit 36c90c20bc
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
2 changed files with 11 additions and 5 deletions

View file

@ -1,4 +1,4 @@
name-template: "v$RESOLVED_VERSION 🌈" name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION" tag-template: "v$RESOLVED_VERSION"
# name-template: 'v$NEXT_PATCH_VERSION' # name-template: 'v$NEXT_PATCH_VERSION'
# tag-template: 'v$NEXT_PATCH_VERSION' # tag-template: 'v$NEXT_PATCH_VERSION'
@ -15,7 +15,10 @@ categories:
- "bug" - "bug"
- title: "🧰 Maintenance" - title: "🧰 Maintenance"
label: "chore" label: "chore"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)" - title: "💥 Breaking Changes"
labels:
- "breaking"
change-template: "- $TITLE by @$AUTHOR in #$NUMBER"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver: version-resolver:
major: major:
@ -33,7 +36,7 @@ template: |
$CHANGES $CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEW_TAG **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
exclude-labels: exclude-labels:
- "skip-changelog" - "skip-changelog"
@ -54,3 +57,6 @@ autolabeler:
- "/feat(ure)?/i" - "/feat(ure)?/i"
body: body:
- "/JIRA-[0-9]{1,4}/" - "/JIRA-[0-9]{1,4}/"
- label: "chore"
title:
- "/chore/i"

View file

@ -62,7 +62,7 @@ jobs:
- name: Generate Release Notes - name: Generate Release Notes
id: generate_release_notes id: generate_release_notes
uses: release-drafter/release-drafter@v5 uses: release-drafter/release-drafter@v6
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
@ -70,6 +70,6 @@ jobs:
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
artifacts: build/app/outputs/flutter-apk/app-release.apk artifacts: build/app/outputs/flutter-apk/app-release.apk
name: Release ${{ steps.version.outputs.version }} name: v${{ steps.version.outputs.version }}
tag: ${{ github.ref }} tag: ${{ github.ref }}
body: ${{ steps.generate_release_notes.outputs.body }} body: ${{ steps.generate_release_notes.outputs.body }}