Skip to content

Commit

Permalink
print versions earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-jaksov-tl committed Oct 7, 2024
1 parent 102b2bc commit 927e68b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
run: |
echo "NEW_VERSION=$(git log origin/main..HEAD --cherry -p -- etc/config.xml | grep '\+.\s*.<version>' | head -1 | tr -d '+[:blank:]\n' | sed -e 's/<version>\(.*\)<\/version>/\1/')" >> $GITHUB_ENV
- name: Print versions
run: |
echo "Old version: ${OLD_VERSION:-unknown}; New version: ${NEW_VERSION:-unknown}"
- name: Test that versions are not empty
run: |
[[ ! -z $OLD_VERSION ]] && [[ ! -z $NEW_VERSION ]]
Expand All @@ -32,7 +36,3 @@ jobs:
- name: Make sure new version is greater
run: |
[[ $(echo "$OLD_VERSION\n$NEW_VERSION" | sort --version-sort | tail -n1) == $NEW_VERSION ]]
- name: Print versions
run: |
echo "Old version: ${OLD_VERSION:-unknown}; New version: ${NEW_VERSION:-unknown}"

0 comments on commit 927e68b

Please sign in to comment.