-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.29 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
name: Update Changelog
on:
workflow_call:
inputs:
ref:
description: 'The branch ref to work on.'
required: true
type: string
exclude-labels:
description: 'Labels of issues and PRs that should be excluded from the changelog.'
default: 'duplicate,question,invalid,wontfix,skip-changelog'
type: string
future-release:
description: 'The version of the future release instead of "unreleased" section'
default: ''
type: string
release-branch:
description: 'The branch to limit the PRs to'
default: ''
type: string
jobs:
update_changelog:
name: Update changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{inputs.ref}}
- name: create changelog
uses: charmixer/auto-changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_labels: ${{inputs.exclude-labels}}
future_release: ${{inputs.future-release}}
release_branch: ${{inputs.release-branch}}
- name: commit updated changelog
uses: EndBug/add-and-commit@v9
with:
message: "[CHANGELOG] Updated changelog"
add: "CHANGELOG.md"