Skip to content

Commit

Permalink
Fix version number env call
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed Mar 31, 2024
1 parent c8794a3 commit ce3109d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 }})."
Expand Down

0 comments on commit ce3109d

Please sign in to comment.