We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04294e9 commit f719727Copy full SHA for f719727
.github/workflows/build-prod-app.yml
@@ -36,8 +36,8 @@ jobs:
36
run: |
37
current_tag=${{ github.event.release.tag_name }}
38
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
+ compare_result=$(printf "%s\n%s" "$current_tag" "$latest_tag" | sort -V | tail -n1)
+ if [[ "$current_tag" != "$compare_result" ]]; then
41
echo "Current tag ($current_tag) is lower than latest tag ($latest_tag). Failing the workflow."
42
exit 1
43
else
0 commit comments