Skip to content

Commit 86d9653

Browse files
Create update-changelog.yml
1 parent d93eeaa commit 86d9653

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update Changelog
2+
on:
3+
workflow_call:
4+
inputs:
5+
ref:
6+
description: 'The branch ref to work on.'
7+
required: true
8+
type: string
9+
exclude-labels:
10+
description: 'Labels of issues and PRs that should be excluded from the changelog.'
11+
default: 'duplicate,question,invalid,wontfix,skip-changelog'
12+
type: string
13+
test-command:
14+
description: 'The command to run for executing tests'
15+
default: 'composer ci-all'
16+
type: string
17+
18+
19+
jobs:
20+
update_changelog:
21+
name: Update changelog
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v2
26+
with:
27+
ref: ${{inputs.ref}}
28+
29+
- name: create changelog
30+
uses: charmixer/auto-changelog-action@v1
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
exclude_labels: ${{inputs.exclude-labels}}
34+
35+
- name: commit updated changelog
36+
uses: EndBug/add-and-commit@v8
37+
with:
38+
message: "[CHANGELOG] Updated changelog"
39+
add: "CHANGELOG.md"

0 commit comments

Comments
 (0)