From 5c1fd7d271a2bcab4fd45c518e187caf505d5103 Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Thu, 18 Jul 2024 12:10:12 +0200 Subject: [PATCH] fix check version script --- .github/workflows/reusable-check-version.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-check-version.yml b/.github/workflows/reusable-check-version.yml index 3239bfd..6b7d3d6 100644 --- a/.github/workflows/reusable-check-version.yml +++ b/.github/workflows/reusable-check-version.yml @@ -50,8 +50,9 @@ jobs: script: | core.setFailed('Your Galaxy version is absent or empty!') - name: Compare versions - if: ${{ inputs.compare-versions && env.MAIN_GALAXY_VERSION >= env.CURRENT_GALAXY_VERSION }} uses: actions/github-script@v7 with: script: | - core.setFailed('Your Galaxy version is lower than the version in the main branch or equal. Please bump your version!') + 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