From 25e05576bf1cefa1bdb2cb66bd21692037ecc109 Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Thu, 18 Jul 2024 14:20:05 +0200 Subject: [PATCH] use third party semver compare action --- .github/workflows/reusable-check-version.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/reusable-check-version.yml b/.github/workflows/reusable-check-version.yml index 6b7d3d6..d196d60 100644 --- a/.github/workflows/reusable-check-version.yml +++ b/.github/workflows/reusable-check-version.yml @@ -50,9 +50,8 @@ jobs: script: | core.setFailed('Your Galaxy version is absent or empty!') - name: Compare versions - uses: actions/github-script@v7 + uses: jackbilestech/semver-compare@1.0.4 with: - script: | - if (( ${{env.MAIN_GALAXY_VERSION}} >= ${{env.CURRENT_GALAXY_VERSION}} )); then - core.setFailed('Your Galaxy version is lower than the version in the main branch or equal. Please bump your version!') - fi \ No newline at end of file + base: ${{env.MAIN_GALAXY_VERSION}} + head: ${{env.CURRENT_GALAXY_VERSION}} + operator: '>='