|
1 | 1 | name: Git Version
|
2 | 2 | author: "Codacy"
|
3 |
| -description: 'Semver versioning based on the git history and commit messages of your repository.' |
| 3 | +description: "Semver versioning based on the git history and commit messages of your repository." |
4 | 4 | branding:
|
5 |
| - icon: 'git-branch' |
6 |
| - color: 'gray-dark' |
| 5 | + icon: "git-branch" |
| 6 | + color: "gray-dark" |
7 | 7 | inputs:
|
8 | 8 | tool-version:
|
9 |
| - description: 'The version of the tool to be ran' |
| 9 | + description: "The version of the tool to be ran" |
10 | 10 | required: true
|
11 | 11 | default: latest
|
12 | 12 | release-branch:
|
13 |
| - description: 'The name of the release branch' |
| 13 | + description: "The name of the release branch" |
14 | 14 | required: true
|
15 | 15 | default: master
|
16 | 16 | dev-branch:
|
17 |
| - description: 'The name of the dev branch' |
| 17 | + description: "The name of the dev branch" |
18 | 18 | required: true
|
19 | 19 | default: dev
|
20 | 20 | minor-identifier:
|
21 |
| - description: 'The string or regex to identify a minor release commit' |
| 21 | + description: "The string or regex to identify a minor release commit" |
22 | 22 | required: true
|
23 |
| - default: 'feature:' |
| 23 | + default: "feature:" |
24 | 24 | major-identifier:
|
25 |
| - description: 'The string or regex to identify a major release commit' |
| 25 | + description: "The string or regex to identify a major release commit" |
26 | 26 | required: true
|
27 |
| - default: 'breaking:' |
| 27 | + default: "breaking:" |
28 | 28 | prefix:
|
29 |
| - description: 'The prefix to use in the version' |
| 29 | + description: "The prefix to use in the version" |
30 | 30 | required: false
|
31 | 31 | suffix:
|
32 | 32 | description: "The suffix to use in the version"
|
33 | 33 | required: false
|
34 | 34 | log-paths:
|
35 |
| - description: 'The paths to be used to calculate changes (comma-separated)' |
| 35 | + description: "The paths to be used to calculate changes (comma-separated)" |
36 | 36 | required: false
|
37 | 37 | default: ./
|
38 | 38 | outputs:
|
39 | 39 | version:
|
40 |
| - description: 'The value of the new pre-calculated tag' |
| 40 | + description: "The value of the new pre-calculated tag" |
41 | 41 | value: ${{ steps.version.outputs.version }}
|
42 | 42 | previous-version:
|
43 |
| - description: 'Contains the value of previous tag, before calculating a new one' |
| 43 | + description: "Contains the value of previous tag, before calculating a new one" |
44 | 44 | value: ${{ steps.previous-version.outputs.previous-version }}
|
45 | 45 | runs:
|
46 | 46 | using: "composite"
|
|
66 | 66 | --dev-branch "${{ inputs.dev-branch }}" \
|
67 | 67 | --minor-identifier="${{ inputs.minor-identifier }}" \
|
68 | 68 | --major-identifier="${{ inputs.major-identifier }}" \
|
69 |
| - --version-prefix "${{ inputs.prefix }}") \ |
| 69 | + --version-prefix "${{ inputs.prefix }}" \ |
70 | 70 | --version-suffix "${{ inputs.suffix }}")
|
71 | 71 |
|
72 | 72 | echo "previous-version=$PREVIOUS_VERSION" >> $GITHUB_OUTPUT
|
|
81 | 81 | --dev-branch "${{ inputs.dev-branch }}" \
|
82 | 82 | --minor-identifier="${{ inputs.minor-identifier }}" \
|
83 | 83 | --major-identifier="${{ inputs.major-identifier }}" \
|
84 |
| - --version-prefix "${{ inputs.prefix }}") \ |
| 84 | + --version-prefix "${{ inputs.prefix }}" \ |
85 | 85 | --version-suffix "${{ inputs.suffix }}")
|
86 | 86 |
|
87 | 87 | echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
0 commit comments