Add support for 1.21.4, fix slimefun api breaking changes #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| - id: run | |
| run: | | |
| newVersion=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | |
| echo New Version: $newVersion | |
| echo ::set-output name=new-version::$newVersion | |
| tag=$(git tag | sort -r --version-sort | head -n1) | |
| if [ ! "$tag" ]; then | |
| tag="0.0.0" | |
| fi | |
| echo Old Version: $tag | |
| echo ::set-output name=old-version::$tag | |
| - uses: madhead/[email protected] | |
| id: comparison | |
| with: | |
| version: ${{ steps.run.outputs.new-version }} | |
| compare-to: ${{ steps.run.outputs.old-version }} | |
| - run: '[[ ">" == "${{ steps.comparison.outputs.comparison-result }}" ]]' |