-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (33 loc) · 1.1 KB
/
release-drafter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release Drafter
on:
# For creating draft releases
push:
branches:
- main
# For autolabeling PRs
pull_request:
types: [ synchronize, opened, reopened, ready_for_review, converted_to_draft ]
# For autolabeling PRs from forks
pull_request_target:
types: [ synchronize, opened, reopened, ready_for_review ]
# For updating the release draft (when run against main) & manually running the autolabeler (against any other branch)
workflow_dispatch:
permissions:
contents: read
jobs:
update_release_draft:
name: Update Release Draft
permissions:
# Write permission is required to create a GitHub release
contents: write
# Write permission is required for autolabeler
# Otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
# Allows the auto-labeler to run without adding unmerged PRs to the draft
disable-releaser: ${{ github.ref_name != 'main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}