Skip to content

Commit 2644bae

Browse files
author
Petr Sramek
committed
update composite versioning action
1 parent 3fdb5c5 commit 2644bae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/actions/versioning.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: 'Versioning with GitVersion $INPUT_GIT_VERSION'
22
description: 'Generating software versions'
33
inputs:
4-
git-version: # id of input
4+
git-version:
55
description: 'Version of GitVersion'
66
required: true
77
default: 6.0.x
8-
git-action-version: # id of input
9-
description: 'Version of GitVersion actions'
8+
git-action-version:
9+
description: 'Version of GitVersion action'
1010
required: true
1111
default: v3.1.11
1212
is-release:
13-
description: 'Realese flag'
13+
description: 'Release flag'
1414
required: false
1515
default: false
1616
outputs:
1717
ASSEMBLY_VERSION: ${{ steps.gitversion.outputs.assemblySemVer }}.${{ github.run_number }}
1818
ASSEMBLY_INFORMATIONAL_VERSION: ${{ steps.gitversion.outputs.assemblySemVer }}.${{ github.run_number }}+${{ steps.gitversion.outputs.sha }}
1919
FILE_VERSION: ${{ steps.gitversion.outputs.assemblySemVer }}.${{ github.run_number }}
20-
PACKAGE_VERSION: ${{ fromJSON(format('[ "{0}.{1}.{2}", "{0}.{2}" ]', steps.gitversion.outputs.assemblySemVer, steps.gitversion.outputs.preReleaseLabelWithDash, github.run_number))[fromJSON($INPUT_IS_RELEASE)] }}
20+
PACKAGE_VERSION: ${{ fromJSON(format('[ "{0}{1}", "{0}" ]', steps.gitversion.outputs.assemblySemVer, steps.gitversion.outputs.preReleaseLabelWithDash))[fromJSON($INPUT_IS_RELEASE)] }}
2121
runs:
2222
using: "composite"
2323
steps:

0 commit comments

Comments
 (0)