Skip to content

Commit

Permalink
Update release workflow (#7680)
Browse files Browse the repository at this point in the history
Set RELEASE_NAME as environment variable for the step

Signed-off-by: Chaminda Divitotawela <[email protected]>
Signed-off-by: Wolmin <[email protected]>
  • Loading branch information
cdivitotawela authored and Wolmin committed Sep 27, 2024
1 parent f84cf51 commit 621157e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 621157e

Please sign in to comment.