Skip to content

Commit 9a4412f

Browse files
feat: should release
1 parent 5f12684 commit 9a4412f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.draft.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: release.draft
22

33
on:
4-
push:
5-
branches: [$default-branch]
64
workflow_dispatch:
75
inputs:
86
prerelease:
@@ -13,23 +11,25 @@ on:
1311
description: Publish release
1412
required: false
1513
default: false
14+
bump:
15+
description: 'Bumping (#major, #minor or #patch)'
16+
required: false
17+
default: patch
1618

1719
jobs:
1820
draft-a-release:
1921
runs-on: ubuntu-latest
2022
steps:
2123

2224
- uses: actions/checkout@v2
23-
with:
24-
fetch-depth: '0'
2525

2626
- name: check next version
2727
uses: anothrNick/[email protected]
2828
id: tag
2929
env:
3030
DRY_RUN: true
3131
WITH_V: true
32-
DEFAULT_BUMP: patch
32+
DEFAULT_BUMP: ${{ github.event.inputs.bump }}
3333

3434
- name: release-draft
3535
uses: release-drafter/[email protected]

0 commit comments

Comments
 (0)