From 2e6cdf9099f90519b8b1972866a6bef3d7b99777 Mon Sep 17 00:00:00 2001 From: Chaminda Divitotawela Date: Wed, 25 Sep 2024 12:14:09 +1000 Subject: [PATCH] Input parameter as a environment variable --- .github/workflows/draft-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 2021a5b370a..6cc93f440e8 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -15,11 +15,12 @@ env: jobs: validate: runs-on: ubuntu-22.04 + env: + RELEASE_NAME: "${{ inputs.version }}" steps: - name: Pre-process Release Name id: pre_process_release_name run: | - RELEASE_NAME="${{ inputs.version }}" # strip all whitespace RELEASE_NAME="${RELEASE_NAME//[[:space:]]/}" if [[ ! "$RELEASE_NAME" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?(-.*)?$ ]]; then