Skip to content

Commit

Permalink
Fix the release workflow upgrade check
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed May 17, 2024
1 parent 5e5f420 commit b689957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ jobs:
changes="$(git diff ${{ github.event.before }} ${{ github.event.after }} $file)"
lock_version=$(echo "$changes" | grep -A1 'name = "aries-cloudagent"' | head -n 2 | tail -n 1 | awk '{print $3}' | tr -d '"')
echo "File = $file"
echo "Version = $version"
echo "Version = $lock_version"
echo "Global Version = $current_global_version"
if [[! -n "$vresion"]] && [[ $(sem_version $current_global_version) -ge $(sem_version $version) ]]; then
if [[! -n "$lock_version"]] && [[ $(sem_version $current_global_version) -ge $(sem_version $lock_version) ]]; then
echo "Upgrade Detected in $file"
found_upgrade=true
break
Expand Down

0 comments on commit b689957

Please sign in to comment.