Simple GitHub Action for getting Maven version.
Simply add the following to your workflow:
steps:
- id: get-version
uses: jactions/maven-version@v1
This will output version string accessible via ${{ steps.get-version.outputs.version }}
.
You can use any valid identifier instead of get-version
.
By default, the action uses Maven's default POM file location.
This can be overridden via pom
input
which is equivalent to providing --file
parameter to Maven executable:
steps:
- id: get-version
uses: jactions/maven-version@v1
with:
pom: ./custom/path/to/pom.xml
By default, the action used Maven's defaults for its settings file.
This can be overridden via settings
input
which is equivalent to providing --settings
parameter to Maven executable:
steps:
- id: get-version
uses: jactions/maven-version@v1
with:
settings: ./custom/path/to/settings.xml
The project is licensed under MIT license.