-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (34 loc) · 1021 Bytes
/
changelog.yaml
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
37
name: 'Changelogs'
on:
push:
tags:
- '*'
jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v4
with:
configurationJson: |
{
"pr_template": "- #{{TITLE}}",
"tag_resolver": {
"method": "semver",
"transformer": {
"pattern": "home-assistant-(.+)",
"target": "$1"
}
}
}
commitMode: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Print output
run: echo "${{steps.github_release.outputs.changelog}}"
- name: Create Release
uses: mikepenz/[email protected] #softprops/action-gh-release
with:
body: ${{steps.github_release.outputs.changelog}}