Skip to content

Commit 7f96ca6

Browse files
authored
chore(ci): add manual workflow_dispatch trigger for forced releases (#746)
1 parent 3ab0474 commit 7f96ca6

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ on:
33
push:
44
branches:
55
- main
6+
workflow_dispatch:
7+
inputs:
8+
release_type:
9+
description: "Release type to force (patch, minor, major)"
10+
required: false
11+
default: "patch"
12+
type: choice
13+
options:
14+
- patch
15+
- minor
16+
- major
617
concurrency:
718
group: "${{ github.workflow }}-${{ github.ref }}"
819
cancel-in-progress: true
@@ -20,7 +31,8 @@ jobs:
2031
uses: TriPSs/conventional-changelog-action@91be4f3188da74fe85de9caffcebc80b26d43b5b # v6
2132
with:
2233
github-token: ${{ secrets.GH_RELEASE_PAT }}
23-
skip-on-empty: true
34+
skip-on-empty: ${{ github.event_name != 'workflow_dispatch' }}
35+
release-type: ${{ github.event.inputs.release_type || 'patch' }}
2436
git-push: false
2537
skip-git-pull: true
2638
skip-version-file: true

0 commit comments

Comments
 (0)