Skip to content

Commit

Permalink
build(chart): fix version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Faber committed Oct 11, 2021
1 parent a82d432 commit 35784ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
# Release new chart only if its version changes
helm repo add otomi https://otomi.io/otomi-core
helm repo update
this_version=v$(cat chart/otomi/Chart.yaml | yq r - 'version')
this_version=$(cat chart/otomi/Chart.yaml | yq r - 'version')
chart_version=$(helm search repo otomi -o json | jq -r 'sort_by(.version) | .[-1].version')
[ "$this_version" = "$chart_version" ] && echo "The current version ($this_version) is the same as the last released version ($chart_version). Skipping chart release." && exit
echo ::set-output name=has_changes::true
Expand Down

0 comments on commit 35784ca

Please sign in to comment.