Skip to content

Add support for 1.21.4, fix slimefun api breaking changes #22

Add support for 1.21.4, fix slimefun api breaking changes

Add support for 1.21.4, fix slimefun api breaking changes #22

Workflow file for this run

name: Check Version
on:
pull_request:
branches:
- master
paths:
- 'src/**'
- 'pom.xml'
jobs:
check:
if: github.repository_owner == 'Mooy1'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: run
run: |
newVersion=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo New Version: $newVersion
echo "new-version=$newVersion" >> $GITHUB_OUTPUT
tag=$(git tag | sort -r --version-sort | head -n1)
if [ ! "$tag" ]; then
tag="0.0.0"
fi
echo Old Version: $tag
echo "old-version=$tag" >> $GITHUB_OUTPUT
- uses: madhead/semver-utils@latest
id: comparison
with:
version: ${{ steps.run.outputs.new-version }}
compare-to: ${{ steps.run.outputs.old-version }}
- run: '[[ ">" == "${{ steps.comparison.outputs.comparison-result }}" ]]'