-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
action.yml
25 lines (25 loc) · 902 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Increment Semantic Version
description: Bump a given semantic version by a release type ( major | minor | patch ) and add a possible postfix ( alpha | beta | rc )
author: Christian Dräger
branding:
icon: 'tag'
color: 'purple'
inputs:
current-version:
description: 'The current semantic version you want to increment'
required: true
version-fragment:
description: 'The versions fragment you want to increment. possible options are [ major | feature| minor | bug | patch | hotfix | alpha | beta | rc ]'
required: true
outputs:
next-version:
description: 'The incremented version'
value: ${{ steps.bump-version.outputs.next-version }}
runs:
using: "composite"
steps:
- name: Run entrypoint.sh
id: bump-version
shell: bash
run: |
"$GITHUB_ACTION_PATH"/entrypoint.sh "${{ inputs.current-version }}" "${{ inputs.version-fragment }}"