Skip to content

Commit 29cab42

Browse files
committed
feat: add minor/patch toggle to release PR
1 parent fd95db4 commit 29cab42

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ name: create-release-pr
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
bump_type:
7+
description: 'Which version to bump when creating a release PR: minor or patch?'
8+
required: true
9+
default: 'patch'
10+
type: choice
11+
options:
12+
- patch
13+
- minor
514

615
jobs:
716
create-release-pr:
@@ -14,7 +23,7 @@ jobs:
1423
uses: miniscruff/changie-action@v2
1524
with:
1625
version: latest
17-
args: batch patch
26+
args: batch ${{ github.event.inputs.bump_type }}
1827

1928
- name: merge-changes
2029
uses: miniscruff/changie-action@v2
@@ -48,4 +57,8 @@ jobs:
4857
title: Release ${{ steps.latest.outputs.output }}
4958
branch: release/${{ steps.latest.outputs.output }}
5059
commit-message: Release ${{ steps.latest.outputs.output }}
60+
body: |
61+
Here is what a new entry in changelog would look like:
62+
63+
[`.changes/${{ steps.latest.outputs.output }}.md`](https://github.com/${{ github.repository }}/blob/release/${{ steps.latest.outputs.output }}/.changes/${{ steps.latest.outputs.output }}.md)
5164
token: ${{ github.token }}

0 commit comments

Comments
 (0)