-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (39 loc) · 1.2 KB
/
update-changelog.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
37
38
39
40
41
42
43
44
45
46
47
name: Update Changelog
# Use this task to tune changelog generator AND verify changelog before release
on:
push:
branches:
- development
workflow_dispatch:
jobs:
run:
name: Update Unreleased Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: heinrichreimer/[email protected]
id: generate_changelog
with:
token: ${{ secrets.GITHUB_TOKEN }}
issues: true
headerLabel: Changes
stripGeneratorNotice: true
stripHeaders: true
output: UNRELEASED_CHANGELOG.md
unreleasedLabel: ''
# addSections: '{ "notable-change": {"prefix": "**NotableChanges:**", "labels": ["notable-change"]} }'
- name: Output
run: echo "::group::Changelog"; cat UNRELEASED_CHANGELOG.md; echo "::endgroup::"
# - name: Commit changelog
# uses: EndBug/add-and-commit@v5
# with:
# author_name: Github Bot
# author_email: [email protected]
# message: "Updated unreleased changelog"
# add: "UNRELEASED_CHANGELOG.MD"
# push: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}