Skip to content

Commit

Permalink
Update release workflow (hyperledger#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]>
  • Loading branch information
cdivitotawela authored Sep 26, 2024
1 parent bef897a commit 682daa3
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 682daa3

Please sign in to comment.