Skip to content

Commit db02661

Browse files
committed
refactor!: rename version input names
1 parent 3dfcad4 commit db02661

4 files changed

Lines changed: 28 additions & 22 deletions

File tree

.github/workflows/promote.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,21 @@ on:
2121
description: 'The files to add to git'
2222
required: false
2323
type: string
24-
previous-version:
24+
version-previous:
2525
description: 'The strategy to detect the previous version: auto, from-tag, from-file or manual'
2626
required: false
2727
default: 'auto'
2828
type: string
29-
next-version:
29+
version-next:
3030
description: 'The strategy to calculate the next version: auto, semantic, from-file, increment or manual'
3131
required: false
3232
default: 'auto'
3333
type: string
34+
version-output-format:
35+
description: 'The output format of the next version'
36+
required: false
37+
default: '{{.Major}}.{{.Minor}}.{{.Patch}}'
38+
type: string
3439
version-file:
3540
description: 'Set version in file named as input'
3641
required: false
@@ -105,8 +110,9 @@ jobs:
105110
name: next release version
106111
uses: getdevopspro/github-actions/release-version@v2.0.0
107112
with:
108-
previous-version: ${{ inputs.previous-version }}
109-
next-version: ${{ inputs.next-version }}
113+
previous-version: ${{ inputs.version-previous }}
114+
next-version: ${{ inputs.version-next }}
115+
output-format: ${{ version-output-format }}
110116

111117
- name: set version in file
112118
uses: getdevopspro/github-actions/version-file@v2.0.0

.github/workflows/pull-request.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ on:
1414
description: 'Detected or calculated version'
1515
value: ${{ jobs.prepare.outputs.version }}
1616
inputs:
17-
previous-version:
17+
version-previous:
1818
description: 'The strategy to detect the previous version: auto, from-tag, from-file or manual'
1919
required: false
2020
default: 'auto'
2121
type: string
22-
next-version:
22+
version-next:
2323
description: 'The strategy to calculate the next version: auto, semantic, from-file, increment or manual'
2424
required: false
2525
default: 'auto'
2626
type: string
27-
output-format:
27+
version-output-format:
2828
description: 'The output format of the next version'
2929
required: false
3030
default: '{{.Major}}.{{.Minor}}.{{.Patch}}-pull-request'
@@ -774,9 +774,9 @@ jobs:
774774
id: release_version
775775
uses: getdevopspro/github-actions/release-version@v2.0.0
776776
with:
777-
previous-version: ${{ inputs.previous-version }}
778-
next-version: ${{ inputs.next-version }}
779-
output-format: ${{ inputs.output-format }}
777+
previous-version: ${{ inputs.version-previous }}
778+
next-version: ${{ inputs.version-next }}
779+
output-format: ${{ version-output-format }}
780780

781781
- name: Set version in file
782782
uses: getdevopspro/github-actions/version-file@v2.0.0

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ on:
2828
description: 'The files to add to git'
2929
required: false
3030
type: string
31-
previous-version:
31+
version-previous:
3232
description: 'The strategy to detect the previous version: auto, from-tag, from-file or manual'
3333
required: false
3434
default: 'auto'
3535
type: string
36-
next-version:
36+
version-next:
3737
description: 'The strategy to calculate the next version: auto, semantic, from-file, increment or manual'
3838
required: false
3939
default: 'auto'
4040
type: string
41-
output-format:
41+
version-output-format:
4242
description: 'The output format of the next version'
4343
required: false
4444
default: '{{.Major}}.{{.Minor}}.{{.Patch}}'
@@ -239,9 +239,9 @@ jobs:
239239
id: release_version
240240
uses: getdevopspro/github-actions/release-version@v2.0.0
241241
with:
242-
previous-version: ${{ inputs.previous-version }}
243-
next-version: ${{ inputs.next-version }}
244-
output-format: ${{ inputs.output-format }}
242+
previous-version: ${{ inputs.version-previous }}
243+
next-version: ${{ inputs.version-next }}
244+
output-format: ${{ version-output-format }}
245245

246246
- name: Set version in file
247247
uses: getdevopspro/github-actions/version-file@v2.0.0

release-version/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Release Version
22
description: Set release version
33
inputs:
4-
previous-version:
4+
version-previous:
55
description: 'The strategy to detect the previous version: auto, from-tag, from-file or manual'
66
required: false
77
default: 'auto'
8-
next-version:
8+
version-next:
99
description: 'The strategy to calculate the next version: auto, semantic, from-file, increment or manual'
1010
required: false
1111
default: 'auto'
12-
output-format:
12+
version-output-format:
1313
description: 'The output format of the next version'
1414
required: false
1515
default: '{{.Major}}.{{.Minor}}.{{.Patch}}'
@@ -28,7 +28,7 @@ runs:
2828
id: release_version
2929
uses: jenkins-x-plugins/jx-release-version@v2.7.8
3030
with:
31-
previous-version: ${{ inputs.previous-version }}
32-
next-version: ${{ inputs.next-version }}
33-
output-format: ${{ inputs.output-format }}
31+
previous-version: ${{ inputs.version-previous }}
32+
next-version: ${{ inputs.version-next }}
33+
output-format: ${{ version-output-format }}
3434
tag: ${{ inputs.tag }}

0 commit comments

Comments
 (0)