From 3c6df823028ffbaadcca554b89685002fc115668 Mon Sep 17 00:00:00 2001 From: Harish P Date: Wed, 5 Feb 2025 15:34:54 +0530 Subject: [PATCH] updated release action --- .github/workflows/release.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0cc1f0b..b40326e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,18 +5,20 @@ on: # yamllint disable-line rule:truthy workflow_call: workflow_dispatch: inputs: - version: - description: 'Version to release (major, minor, patch), Example: 1.x.x' - required: true - image: - description: 'Image name. Example: csi-metadata-retriever' - default: 'csi-metadata-retriever' - required: true + option: + description: 'Select version to release' + required: true + type: choice + default: 'minor' + options: + - major + - minor + - patch jobs: csm-release: uses: dell/common-github-actions/.github/workflows/csm-release-driver-module.yaml@main name: Release CSM Drivers and Modules with: - version: ${{ github.event.inputs.version }} - image: ${{ github.event.inputs.image }} + version: ${{ github.event.inputs.option }} + images: 'csi-metadata-retriever' secrets: inherit