This GitHub action computes the project version.
| Output | Description |
|---|---|
|
The version of the project. |
|
Whether the version is a snapshot version. |
In Maven projects, this action uses the mvn CLI to determine the project version, and must run after actions/setup-java.
In Gradle projects, this action reads the version from gradle.properties.
- name: Compute Version
id: project-version
uses: spring-io/spring-release-actions/compute-version@a1f321783a0769dd2aea4fad6c2ae2f95a52b885 # 0.0.5
# Use the output from the `project-version` step
- name: Echo version
run: echo "The project version is ${{ steps.project-version.outputs.version }}"