Skip to content

Commit f719727

Browse files
committed
fix: compare versions in prod build script
1 parent 04294e9 commit f719727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-prod-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
run: |
3737
current_tag=${{ github.event.release.tag_name }}
3838
latest_tag=${{ steps.get_latest_release.outputs.latest_tag }}
39-
40-
if [[ "$current_tag" != "$(echo -e "$current_tag\n$latest_tag" | sort -V | head -n1)" ]]; then
39+
compare_result=$(printf "%s\n%s" "$current_tag" "$latest_tag" | sort -V | tail -n1)
40+
if [[ "$current_tag" != "$compare_result" ]]; then
4141
echo "Current tag ($current_tag) is lower than latest tag ($latest_tag). Failing the workflow."
4242
exit 1
4343
else

0 commit comments

Comments
 (0)