Skip to content

Commit

Permalink
chore(releasenotes): update workflow configuration (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl authored Mar 15, 2024
1 parent 5bd4903 commit d723662
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
24 changes: 16 additions & 8 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ autolabeler:
- '/fix\/.+/'
title:
- '/fix/i'
- label: 'improvement'
branch:
- '/improv\/.+/'
title:
- '/improv/i'
- label: 'feature'
branch:
- '/feature\/.+/'
Expand All @@ -23,9 +28,9 @@ autolabeler:
- '/docs/i'
- label: 'maintenance'
branch:
- '/(chore|refactor|style|test|ci|perf|build|deps)\/.+/'
- '/(chore|refactor|style|test|ci|perf|build)\/.+/'
title:
- '/(chore|refactor|style|test|ci|perf|build|deps)/i'
- '/(chore|refactor|style|test|ci|perf|build)/i'
- label: 'chore'
branch:
- '/chore\/.+/'
Expand Down Expand Up @@ -78,27 +83,30 @@ categories:
- "type: enhancement"
- "type: new feature"
- "type: major"
- title: '🐛 Bug Fixes'
- "type: minor"
- title: '💡 Improvements'
labels:
- 'fix'
- 'improvement'
- "type: improvement"

- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bug'
- "type: bug"
- "type: minor"
- title: '📚 Documentation'
labels:
- 'docs'
- title: '🔧 Maintenance'
labels:
- 'maintenance'
- 'chore'
- 'refactor'
- 'style'
- 'test'
- 'ci'
- 'perf'
- 'build'
- 'deps'
- "type: dependency upgrade"
- "dependencies"
- "type: ci"
- "type: build"
- title: '⏪ Reverts'
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
pull_request:
types: [opened, reopened, synchronize]
pull_request_target:
types: [opened, reopened, synchronize]
workflow_dispatch:
types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
release_notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- name: Check if it has release drafter config file
id: check_release_drafter
run: |
Expand All @@ -30,8 +30,6 @@ jobs:
if: steps.check_release_drafter.outputs.has_release_drafter == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
commitish: ${{ steps.extract_branch.outputs.value }}
# Otherwise:
- name: Export Gradle Properties
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
Expand All @@ -50,4 +48,4 @@ jobs:
name: ${{ env.title }} ${{ steps.release_notes.outputs.next_version }}
tag: v${{ steps.release_notes.outputs.next_version }}
bodyFile: CHANGELOG.md
token: ${{ secrets.GH_TOKEN }}
token: ${{ secrets.GH_TOKEN }}

0 comments on commit d723662

Please sign in to comment.