Skip to content

Commit c3d8bfb

Browse files
authored
Add check for not existing release version (#179)
1 parent d055bad commit c3d8bfb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release-creator.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
MY_VAR: ${{ env.MY_VAR }}
4949
run: |
5050
current_version=$MY_VAR
51+
52+
# The latest version does not exist. Set it to v0.0.0.
53+
if [[ "$current_version" = "null" ]]; then
54+
current_version="v0.0.0"
55+
fi
56+
5157
current_version=(${current_version#v}) # remove 'v' prefix from $current_version"
5258
5359
IFS='.' read -r -a version_parts <<< "$current_version"

0 commit comments

Comments
 (0)