Update release workflow (#7680)

Set RELEASE_NAME as environment variable for the step

Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
pull/7673/head
Chaminda Divitotawela 2 months ago committed by GitHub
parent bef897a162
commit 682daa31b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      .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

Loading…
Cancel
Save