-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
36 lines (36 loc) · 1.08 KB
/
action.yml
File metadata and controls
36 lines (36 loc) · 1.08 KB
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
26
27
28
29
30
31
32
33
34
35
36
name: 'Coditory version parser'
description: 'Parses current version from git tags and ouputs next version.'
branding:
icon: clock
color: blue
inputs:
increment-section:
description: 'Version section to increment. Possible values: major, minor, patch'
required: true
default: patch
snapshot:
description: 'In the next version should be a snapshot version'
required: true
default: 'false'
manual-version:
description: 'Manually specified next version that should be validated'
required: false
default: ''
outputs:
version:
description: 'Current version'
value: ${{ steps.version.outputs.version }}
next_version:
description: 'Next version'
value: ${{ steps.version.outputs.next_version }}
runs:
using: "composite"
steps:
- id: version
shell: bash
env:
INCREMENT_SECTION: ${{ inputs.increment-section }}
SNAPSHOT: ${{ inputs.snapshot }}
MANUAL_VERSION: ${{ inputs.manual-version }}
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
run: $GITHUB_ACTION_PATH/action.sh