Skip to content

Commit

Permalink
Fix inputs.version env in version check"
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed Mar 31, 2024
1 parent c8794a3 commit bb9d3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Check version number
run: |
current_version=$(echo "$(cat DESCRIPTION)" | grep "Version:" | awk '{print $2}')
input_version="${{ steps.read_version.outputs.version }}"
input_version="${{ inputs.version }}"
if [ "$(printf '%s\n' "$input_version" "$current_version" | sort -V | head -n1)" = "$input_version" ]; then
echo "::error title=Invalid version::Provided version number must be higher than the current version (${{ inputs.version }})."
echo "::error title=Invalid version::Provided version number must be higher than the current version ($current_version)."
exit 1
fi
Expand Down

0 comments on commit bb9d3e9

Please sign in to comment.