Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 709 Bytes

File metadata and controls

33 lines (23 loc) · 709 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. It must run after actions/setup-java.

Example Usage

- name: Compute Version
  id: project-version
  uses: spring-io/spring-release-actions/compute-version@main

# Use the output from the `project-version` step
- name: Echo version
  run: echo "The project version is ${{ steps.project-version.outputs.version }}"