-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
52 lines (44 loc) · 1.43 KB
/
action.yml
File metadata and controls
52 lines (44 loc) · 1.43 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 'Semantic Version Increment'
description: 'Increments a semantic version incl. optional build counter'
author: 'Psycho0verload'
branding:
icon: 'trending-up'
color: 'blue'
inputs:
current-version:
description: 'Previous version (e.g. v1.0.0-alpha.1)'
required: true
version-type:
description: >
Type of release. Supported:
none, patch, minor, major, stable, alpha, beta, rc,
as well as combinations such as patch-alpha, minor-beta, etc.
required: true
preversion:
description: 'Whether the pre-release version should always be incremented'
required: false
default: true
preversion-start-zero:
description: 'Start value for pre-release versions (e.g. 1 for -alpha.1)'
required: false
default: false
use-build:
description: 'Whether the build counter is activated'
required: false
default: false
prefix:
description: 'Outputs a "v" as a prefix (not a semantic version)'
required: false
default: false
outputs:
next-version:
description: 'The new version'
value: ${{ steps.bump-version.outputs.next-version }}
runs:
using: "composite"
steps:
- name: Run increment.sh
id: bump-version
shell: bash
run: |
"$GITHUB_ACTION_PATH"/increment.sh "${{ inputs.current-version }}" "${{ inputs.version-type }}" "${{ inputs.preversion }}" "${{ inputs.preversion-start-zero }}" "${{ inputs.use-build }}" "${{ inputs.prefix }}"