-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 946 Bytes
/
release-drafter.yml
File metadata and controls
31 lines (27 loc) · 946 Bytes
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
name: Release Drafter
# Updates a draft GitHub Release on every push to `main` and on PR
# label / open / reopen events. The drafted release body becomes the
# `release.yml` workflow's input on tag push (see release.yml).
#
# Single-source-of-truth: the categories + version-resolver in
# .github/release-drafter.yml mirror the conventional-commit prefixes
# enforced by check_commit_types.py and the `Lint PR title` job.
on:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize, labeled, unlabeled]
branches: [main]
permissions:
contents: write # create/update draft releases
pull-requests: read
jobs:
draft:
runs-on: ubuntu-latest
name: Draft next release
steps:
- uses: release-drafter/release-drafter@6a93d829887aa2e0748befe2e808c66c0ec6e4c7 # v6
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}