Skip to content

Commit fc701c0

Browse files
committed
Swap "return" with "exit"
Signed-off-by: Eric Ball <[email protected]>
1 parent c6507c6 commit fc701c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/vc.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
else
3333
echo "dev_version=false" >> $GITHUB_OUTPUT
3434
fi
35-
return 1
3635
3736
- name: get target version
3837
id: get-target-version-step
@@ -45,6 +44,6 @@ jobs:
4544
# check if version format is matched to SemVer
4645
VER_REGEX='^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$'
4746
if [[ ! $(cat VERSION | tr -d '\n' | sed s/-dev//) =~ $VER_REGEX ]]; then
48-
return 1
47+
exit 1
4948
fi
50-
return 0
49+
exit 0

0 commit comments

Comments
 (0)