Skip to content

Commit

Permalink
fix: Fix Release by Fixing Release Notes due to failed spotless check…
Browse files Browse the repository at this point in the history
… on generated file release_notes.md (#506)

Signed-off-by: Alfredo Gutierrez <alfredo@swirldslabs.com>
  • Loading branch information
AlfredoG87 authored Jan 18, 2025
1 parent 866ef25 commit d391365
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 52 deletions.
88 changes: 45 additions & 43 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,52 @@
# SPDX-License-Identifier: Apache-2.0
changelog:
exclude:
labels: ['wontfix', 'question', 'duplicate', 'invalid']
labels: ["wontfix", "question", "duplicate", "invalid"]
categories:
- title: '🚀 Enhancements'
labels: ['Feature Enhancement', 'New Feature']
- title: '🐛 Bug Fixes'
labels: ['Bug']
- title: '🔨 Tests'
labels: ['Tests']
- title: '📝 Documentation'
labels: ['Documentation', 'Design']
- title: '🔒 Security'
labels: ['Security']
- title: '🔧 Improvements'
labels: ['Improvement']
- title: '🔥 Breaking Changes'
labels: ['Breaking Change']
- title: '⬆️ Dependency Upgrades'
labels: ['dependencies']
sort: 'desc'
- title: "⭐ New Features"
labels: ["New Feature"]
- title: "🚀 Enhancements"
labels: ["Feature Enhancement"]
- title: "🐛 Bug Fixes"
labels: ["Bug"]
- title: "🔨 Tests"
labels: ["Tests"]
- title: "📝 Documentation"
labels: ["Documentation", "Design"]
- title: "🔒 Security"
labels: ["Security"]
- title: "🔧 Improvements"
labels: ["Improvement"]
- title: "🔥 Breaking Changes"
labels: ["Breaking Change"]
- title: "⬆️ Dependency Upgrades"
labels: ["dependencies"]
sort: "desc"
transformers:
- pattern: '^feat: (.*)$'
target: 'Feature: $1'
- pattern: '^fix: (.*)$'
target: 'Fix: $1'
- pattern: '^docs: (.*)$'
target: 'Docs: $1'
- pattern: '^style: (.*)$'
target: 'Style: $1'
- pattern: '^refactor: (.*)$'
target: 'Refactor: $1'
- pattern: '^perf: (.*)$'
target: 'Performance: $1'
- pattern: '^test: (.*)$'
target: 'Test: $1'
- pattern: '^chore: (.*)$'
target: 'Chore: $1'
- pattern: '^revert: (.*)$'
target: 'Revert: $1'
- pattern: '^security: (.*)$'
target: 'Security: $1'
- pattern: '^build: (.*)$'
target: 'Build: $1'
- pattern: '^ci: (.*)$'
target: 'CI: $1'
- pattern: "^feat: (.*)$"
target: "Feature: $1"
- pattern: "^fix: (.*)$"
target: "Fix: $1"
- pattern: "^docs: (.*)$"
target: "Docs: $1"
- pattern: "^style: (.*)$"
target: "Style: $1"
- pattern: "^refactor: (.*)$"
target: "Refactor: $1"
- pattern: "^perf: (.*)$"
target: "Performance: $1"
- pattern: "^test: (.*)$"
target: "Test: $1"
- pattern: "^chore: (.*)$"
target: "Chore: $1"
- pattern: "^revert: (.*)$"
target: "Revert: $1"
- pattern: "^security: (.*)$"
target: "Security: $1"
- pattern: "^build: (.*)$"
target: "Build: $1"
- pattern: "^ci: (.*)$"
target: "CI: $1"
template: |
# $RELEASE_TITLE
Expand All @@ -54,7 +56,7 @@ changelog:
$CHANGES
## 👥 Contributors
## ❤️ Contributors
$CONTRIBUTORS
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Create Release Notes
if: ${{ steps.milestone.outputs.milestone_id != '' }}
uses: step-security/release-notes-generator-action@d7cdbb310d4aab8d98f273f4ae20fdd7cb055799 # v3.1.6
env:
FILENAME: ${{ env.RELEASE_NOTES_FILENAME }}
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
MILESTONE_NUMBER: ${{ steps.milestone.outputs.milestone_id }}

- name: Commit and Tag
uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0
with:
Expand All @@ -136,9 +128,10 @@ jobs:
- name: Create Github Release
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1.15.0
with:
bodyFile: ${{ env.RELEASE_NOTES_FILENAME }}.md
allowUpdates: true
commit: ${{ env.RELEASE_BRANCH }}
draft: ${{ steps.version_parser.outputs.prerelease == '' }}
generateReleaseNotes: true
name: ${{ env.RELEASE_TAG }}
omitBody: ${{ steps.milestone.outputs.milestone_id == '' }}
prerelease: ${{ steps.version_parser.outputs.prerelease != '' }}
Expand Down

0 comments on commit d391365

Please sign in to comment.