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
Copy file name to clipboardExpand all lines: README.md
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ jobs:
26
26
runs-on: ubuntu-latest
27
27
steps:
28
28
- uses: actions/checkout@v2
29
-
- uses: Klemensas/action-autotag@stable
29
+
- uses: Klemensas/action-autotag@latest
30
30
with:
31
31
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
32
32
```
@@ -37,7 +37,7 @@ This **order** is important!
37
37
38
38
```yaml
39
39
- uses: actions/checkout@v2
40
-
- uses: Klemensas/action-autotag@stable
40
+
- uses: Klemensas/action-autotag@latest
41
41
```
42
42
43
43
> If the repository is not checked out first, the autotagger cannot find the package.json file.
@@ -47,7 +47,7 @@ This **order** is important!
47
47
The `GITHUB_TOKEN` must be passed in. Without this, it is not possible to create a new tag. Make sure the autotag action looks like the following example:
48
48
49
49
```yaml
50
-
- uses: Klemensas/action-autotag@stable
50
+
- uses: Klemensas/action-autotag@latest
51
51
with:
52
52
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
53
53
```
@@ -63,7 +63,7 @@ There are several options to customize how the tag is created.
63
63
By default, autotag will look for the `package.json` file in the project root. If the file is located in a subdirectory, this option can be used to point to the correct file.
64
64
65
65
```yaml
66
-
- uses: Klemensas/action-autotag@stable
66
+
- uses: Klemensas/action-autotag@latest
67
67
with:
68
68
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
69
69
package_root: "/path/to/subdirectory"
@@ -74,7 +74,7 @@ There are several options to customize how the tag is created.
74
74
By default, `package.json` uses [semantic versioning](https://semver.org/), such as `1.0.0`. A prefix can be used to add text before the tag name. For example, if `tag_prefix` is set to `v`, then the tag would be labeled as `v1.0.0`.
75
75
76
76
```yaml
77
-
- uses: Klemensas/action-autotag@stable
77
+
- uses: Klemensas/action-autotag@latest
78
78
with:
79
79
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
80
80
tag_prefix: "v"
@@ -85,7 +85,7 @@ There are several options to customize how the tag is created.
85
85
Text can also be applied to the end of the tag by setting `tag_suffix`. For example, if `tag_suffix` is ` (beta)`, the tag would be `1.0.0 (beta)`. Please note this example violates semantic versioning and is merely here to illustrate how to add text to the end of a tag name if you _really_ want to.
86
86
87
87
```yaml
88
-
- uses: Klemensas/action-autotag@stable
88
+
- uses: Klemensas/action-autotag@latest
89
89
with:
90
90
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
91
91
tag_suffix: " (beta)"
@@ -97,19 +97,32 @@ There are several options to customize how the tag is created.
97
97
changelog will be generated from the commits between the latest tag and the new tag (HEAD). Setting this option will override it witha custom message.
98
98
99
99
```yaml
100
-
- uses: Klemensas/action-autotag@stable
100
+
- uses: Klemensas/action-autotag@latest
101
101
with:
102
102
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
103
103
tag_message: "Custom message goes here."
104
104
```
105
+
1. `changelog_structure`
106
+
107
+
Provide a custom changelog format when not using `tag_message`.
108
+
This can interpolate strings, supported strings are `{{message}}`, `{{messageHeadline}}`, `{{author}}` and `{{sha}}`.
109
+
Defaults to `**1) {{message}}** {{author}}\n(SHA: {{sha}})\n`.
Copy file name to clipboardExpand all lines: action.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ inputs:
19
19
description: This is the annotated commit message associated with the tag. By default, a changelog will be generated from the commits between the latest tag and the new tag (HEAD). This will override that with a hard-coded message.
20
20
required: false
21
21
changelog_structure:
22
-
description: "A string denoting changelog format. Supports `{{message}}`, `{{author}}` and `{{sha}}`. Defaults to `**1) {{message}}** {{author}}\n(SHA: {{sha}})\n` Only used when tag_message is empty."
22
+
description: "A string denoting changelog format. Supports `{{message}}`, {{messageHeadline}}, `{{author}}` and `{{sha}}`. Defaults to `**1) {{message}}** {{author}}\n(SHA: {{sha}})\n` Only used when tag_message is empty."
23
23
required: false
24
24
version:
25
25
description: Explicitly set the version here instead of automatically detecting from `package.json`. Useful for non-JavaScript projects where version may be output by a previous action.
0 commit comments