From 682daa31b9b9a3d154ea1f47c4471cbe4bd8da3d Mon Sep 17 00:00:00 2001 From: Chaminda Divitotawela Date: Fri, 27 Sep 2024 07:19:08 +1000 Subject: [PATCH] Update release workflow (#7680) Set RELEASE_NAME as environment variable for the step Signed-off-by: Chaminda Divitotawela --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f0661e3cfb..7c9b70891d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,9 @@ jobs: steps: - name: Pre-process Release Name id: pre_process_release_name + env: + RELEASE_NAME: "${{ github.event.release.name }}" run: | - RELEASE_NAME="${{ github.event.release.name }}" # strip all whitespace RELEASE_NAME="${RELEASE_NAME//[[:space:]]/}" if [[ ! "$RELEASE_NAME" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?(-.*)?$ ]]; then