Skip to content

Commit 543a62d

Browse files
authored
Combining the release action (#120)
Signed-off-by: meghana_gm <[email protected]>
1 parent 8e5628c commit 543a62d

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/auto-release.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on: # yamllint disable-line rule:truthy
1919
description: "Patch version to release. example: 2.1.x (Use this only if n-1/n-2 patch is selected)"
2020
required: false
2121
type: string
22+
repository_dispatch:
23+
types: [auto-release-workflow]
2224
jobs:
2325
process-inputs:
2426
name: Process Inputs
@@ -30,6 +32,11 @@ jobs:
3032
id: set-version
3133
shell: bash
3234
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
3340
if [[ "${{ github.event.inputs.version }}" != "" && "${{ github.event.inputs.option }}" == "n-1/n-2 patch (Provide input in the below box)" ]]; then
3441
# if both version and option are provided, then version takes precedence i.e. patch release for n-1/n-2
3542
echo "versionEnv=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)