Skip to main content

Versioning

record-release supports semantic version bumping and explicit version specification.

Version Bumping

Automatically increment from the last deployed version:

- uses: groo-dev/record-release@v1
with:
token: ${{ secrets.OPS_API_TOKEN }}
environment: production
bump: patch # or: minor, major
BumpExample
patch1.0.0 → 1.0.1
minor1.0.0 → 1.1.0
major1.0.0 → 2.0.0

Explicit Version

Specify an exact version:

- uses: groo-dev/record-release@v1
with:
token: ${{ secrets.OPS_API_TOKEN }}
environment: production
version: 2.0.0

Get Current Version

Query the current deployed version without recording:

- uses: groo-dev/record-release@v1
with:
token: ${{ secrets.OPS_API_TOKEN }}
environment: production
get-version: true

Outputs:

  • version: Current version
  • deployed-at: Deployment timestamp
  • commit-hash: Commit hash