Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 831 Bytes

File metadata and controls

34 lines (23 loc) · 831 Bytes

Compute Version Action

This GitHub action computes the project version.

Outputs

Output Description

version

The version of the project.

snapshot

Whether the version is a snapshot version.

Prerequisites

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.

Example Usage

- 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 }}"