-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
83 lines (82 loc) · 2.66 KB
/
action.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
name: Automated Version Bump for .NET libraries
description: Automated version bump for .NET libraries to follow Semantic Versioning.
runs:
using: node12
main: src/index.js
inputs:
type:
description: 'Which type of project are you bumping version for? This is important as .NET Core projects store versions in .csproj files, and .NET framework use AssemblyInfo.cs. Use either "csproj" or "assembly"'
default: 'csproj'
required: false
tag-prefix:
description: 'Prefix that is used for the git tag'
default: ''
required: false
minor-wording:
description: |
Words list that trigger a minor version bump.
Use "," to separate multiple words.
default: 'feat'
required: false
major-wording:
description: |
Words list that trigger a major version bump.
Use "," to separate multiple words.
default: 'feat!,fix!,refactor!'
required: false
patch-wording:
description: |
Words list that trigger a patch version bump.
Use "," to separate multiple words.
default: 'fix'
required: false
release-candidate-wording:
description: |
Words list that trigger a release candidate version bump.
Use "," to separate multiple words.
default: 'next'
required: false
skip-tag:
description: 'Avoid to add a TAG to the version update commit'
default: 'true'
required: false
skip-commit:
description: 'Avoid to add a commit after the version is bumped'
default: 'false'
required: false
skip-push:
description: 'If true, skip pushing any commits or tags created after the version bump'
default: 'false'
required: false
path-to-file:
description: 'Path to the csproj file where the version is located'
required: true
target-branch:
description: 'A separate branch to perform the version bump on'
default: ''
required: false
pre-release-id:
description: 'Set a custom id for prerelease build'
default: 'next'
required: false
commit-message:
description: |
Set a custom commit message for version bump commit.
Use {{version}} as a placeholder for the new version.
default: 'ci: version bump to {{version}}'
required: false
release-commit-message-regex:
description: |
Set a custom commit message regex for release commits.
Use {{version}} as a placeholder for the new version.
Default
default: 'ci: version bump to {{version}}'
required: false
outputs:
wasBumped:
description: 'Boolean to check if the version of the library was bumped'
newVersion:
description: 'The new version of the library'
oldVersion:
description: 'The old version of the library'