File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : codacy-git-version
2
+ description : ' Outputs the version from git-version'
3
+ inputs :
4
+ release-branch :
5
+ description : ' The name of the release branch'
6
+ required : true
7
+ default : master
8
+ dev-branch :
9
+ description : ' The name of the dev branch'
10
+ required : true
11
+ default : dev
12
+ prefix :
13
+ description : ' The prefix to use in the version'
14
+ required : false
15
+ # log-paths:
16
+ # description: 'The paths to be used to calculate changes (comma-separated)'
17
+ # required: false
18
+ # default: ./
19
+ outputs :
20
+ version :
21
+ description : ' The version'
22
+ runs :
23
+ using : ' docker'
24
+ image : ' Dockerfile'
25
+ args :
26
+ - /bin/bash
27
+ - -c
28
+ - |
29
+ VERSION=$(/bin/git-version \
30
+ --release-branch "${{ inputs.release-branch }}" \
31
+ --dev-branch "${{ inputs.dev-branch }}" \
32
+ --version-prefix "${{ inputs.prefix }}") && \
33
+ echo "::set-output name=version::$VERSION" && \
34
+ echo "Version: $VERSION"
You can’t perform that action at this time.
0 commit comments