Skip to content

Commit c69c74e

Browse files
ncipollinaclaude
andcommitted
fix(ci): use dedicated autolabeler action for PR label application
Split into two jobs: - autolabel: uses release-drafter/release-drafter/autolabeler@v7 on PR events - draft: uses main release-drafter action on push/dispatch for draft updates Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 714fedf commit c69c74e

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release-drafter.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,18 @@ permissions:
1818
pull-requests: write
1919

2020
jobs:
21+
autolabel:
22+
runs-on: ubuntu-latest
23+
if: inputs.event_name == 'pull_request' && inputs.pr_draft == false
24+
25+
steps:
26+
- uses: release-drafter/release-drafter/autolabeler@v7
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
2130
draft:
2231
runs-on: ubuntu-latest
23-
if: inputs.event_name == 'push' || inputs.event_name == 'workflow_dispatch' || inputs.pr_draft == false
32+
if: inputs.event_name == 'push' || inputs.event_name == 'workflow_dispatch'
2433

2534
concurrency:
2635
group: release-drafter-${{ github.ref }}
@@ -30,5 +39,6 @@ jobs:
3039
- uses: release-drafter/release-drafter@v7
3140
with:
3241
config-name: release-drafter.yml
42+
disable_autolabeler: true
3343
env:
3444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)