-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.18 KB
/
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
38
39
40
41
42
43
44
45
46
name: Changelog
on:
workflow_dispatch:
inputs:
version:
required: false
default: ''
permissions:
contents: write
pull-requests: write
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Inputs
uses: Payadel/inputs@v0.2.3
id: inputs
with:
inputs: |
- name: version
default: ''
- name: current-branch-name
default: '$(git rev-parse --abbrev-ref HEAD)'
- name: Run Changelog
uses: payadel/changelog-sv-action@v0.0.5
id: changelog
with:
version: ${{ steps.inputs.outputs.version }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore(changelog): update CHANGELOG.md for v${{ steps.changelog.outputs.version }}"
branch: changelog
delete-branch: true
title: 'Changelog v${{ steps.changelog.outputs.version }}'
body: ${{ steps.changelog.outputs.changelog }}
assignees: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>