mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 06:25:44 +00:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
---
|
|
name: 'Version Increment'
|
|
description: Inspects the git tags to determine the current normal version, and returns the next version number
|
|
|
|
branding:
|
|
icon: plus
|
|
color: purple
|
|
|
|
inputs:
|
|
scheme:
|
|
description: 'Versioning scheme - semver, or, calver (defaults to semver)'
|
|
required: false
|
|
default: 'semver'
|
|
increment:
|
|
description: |
|
|
Field to increment - major, minor, or, patch (defaults to patch)
|
|
|
|
Not applicable to `calver` scheme
|
|
required: false
|
|
default: 'patch'
|
|
|
|
outputs:
|
|
current_version:
|
|
description: 'Current normal version detected'
|
|
value: ${{ steps.version-lookup.outputs.current-version }}
|
|
version:
|
|
description: 'Incremented version calculated'
|
|
value: ${{ steps.version-increment.outputs.version }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- id: version-lookup
|
|
run: ${{ github.action_path }}/version-lookup.sh
|
|
shell: bash
|
|
env:
|
|
scheme: ${{ inputs.scheme }}
|
|
|
|
- id: version-increment
|
|
run: ${{ github.action_path }}/version-increment.sh
|
|
shell: bash
|
|
env:
|
|
current_version: ${{ steps.version-lookup.outputs.current-version }}
|
|
increment: ${{ inputs.increment }}
|
|
scheme: ${{ inputs.scheme }}
|