File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ on: # yamllint disable-line rule:truthy
19
19
description : " Patch version to release. example: 2.1.x (Use this only if n-1/n-2 patch is selected)"
20
20
required : false
21
21
type : string
22
+ repository_dispatch :
23
+ types : [auto-release-workflow]
22
24
jobs :
23
25
process-inputs :
24
26
name : Process Inputs
30
32
id : set-version
31
33
shell : bash
32
34
run : |
35
+ echo "Triggered by: ${{ github.event_name }}"
36
+ if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
37
+ echo "versionEnv=minor" >> $GITHUB_OUTPUT
38
+ exit 0
39
+ fi
33
40
if [[ "${{ github.event.inputs.version }}" != "" && "${{ github.event.inputs.option }}" == "n-1/n-2 patch (Provide input in the below box)" ]]; then
34
41
# if both version and option are provided, then version takes precedence i.e. patch release for n-1/n-2
35
42
echo "versionEnv=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments