Update release workflow (#7680)

Set RELEASE_NAME as environment variable for the step

Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
This commit is contained in:
Chaminda Divitotawela
2024-09-27 07:19:08 +10:00
committed by GitHub
parent bef897a162
commit 682daa31b9

View File

@@ -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