-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 1008 Bytes
/
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
# https://johanneskonings.dev/github/2021/02/28/github_automatic_releases_and-changelog/
# https://tiagomichaelsousa.dev/articles/stop-writing-your-changelogs-manually
name: Release Drafter
on:
push:
branches:
- "main"
jobs:
update-release-draft:
name: Release drafter
runs-on: ubuntu-latest
permissions:
# write permission is required to create a github release
contents: write
steps:
- name: Update Release Draft
uses: release-drafter/release-drafter@v6
id: semantic
with:
config-name: release-drafter.yml
disable-autolabeler: true
## Default versioning just increase the path version as default. but the can use minor, patch and breaking-changes labels to apply semver
# version: 1.29.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Do something when a new release published
# run: |
# echo ${{ $RESOLVED_VERSION steps.semantic.outputs }}