Skip to content

Commit

Permalink
use third party semver compare action
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson committed Jul 18, 2024
1 parent 5c1fd7d commit 25e0557
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/reusable-check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
base: ${{env.MAIN_GALAXY_VERSION}}
head: ${{env.CURRENT_GALAXY_VERSION}}
operator: '>='

0 comments on commit 25e0557

Please sign in to comment.