From 927e68b7ce07865a47620b6420ce3fdc412f3ad0 Mon Sep 17 00:00:00 2001 From: Artyom Jaksov Date: Mon, 7 Oct 2024 19:30:07 +0200 Subject: [PATCH] print versions earlier --- .github/workflows/check-version.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-version.yml b/.github/workflows/check-version.yml index 966c2fc..a518bfc 100644 --- a/.github/workflows/check-version.yml +++ b/.github/workflows/check-version.yml @@ -21,6 +21,10 @@ jobs: run: | echo "NEW_VERSION=$(git log origin/main..HEAD --cherry -p -- etc/config.xml | grep '\+.\s*.' | head -1 | tr -d '+[:blank:]\n' | sed -e 's/\(.*\)<\/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 ]] @@ -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}" \ No newline at end of file