You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#example-workflow) is available below.
8
+
9
+
For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file)
10
+
11
+
### Inputs
12
+
-`version` (required): The version to increment
13
+
-`release-type` (required): The release type to increment the version with
14
+
-`prerelease-identifier`: The prerelease identifier to use when incrementing
15
+
16
+
### Outputs
17
+
-`previous-version`: The inputted version
18
+
-`next-version`: The incremented version
19
+
20
+
### Example Workflow
21
+
```yaml
22
+
on:
23
+
push:
24
+
branches:
25
+
- '**'
26
+
pull_request:
27
+
types: [closed]
28
+
29
+
name: Increment Version
30
+
31
+
jobs:
32
+
context:
33
+
name: Increment Version
34
+
runs-on: ubuntu-latest
35
+
steps:
36
+
- name: Checkout code
37
+
uses: actions/checkout@v2
38
+
- name: Increment version
39
+
uses: dolittle/increment-version-action@v2
40
+
with:
41
+
version: 2.0.0
42
+
release-type: minor
43
+
44
+
```
45
+
46
+
### Example Workflow - Increment to new minor prerelease
47
+
```yaml
48
+
on:
49
+
push:
50
+
branches:
51
+
- '**'
52
+
pull_request:
53
+
types: [closed]
54
+
55
+
name: Increment Version
56
+
57
+
jobs:
58
+
context:
59
+
name: Increment Version
60
+
runs-on: ubuntu-latest
61
+
steps:
62
+
- name: Checkout code
63
+
uses: actions/checkout@v2
64
+
- name: Increment version
65
+
uses: dolittle/increment-version-action@v2
66
+
with:
67
+
version: 2.0.0
68
+
release-type: preminor
69
+
prerelease-identifier: alpha
70
+
71
+
```
72
+
73
+
## Contributing
74
+
We're always open for contributions and bug fixes!
0 commit comments