This commit is contained in:
mathieudutour 2020-05-27 15:21:27 +02:00
parent fcbdb4900a
commit f498350328
3 changed files with 6 additions and 4 deletions

View File

@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Bump version and push tag
uses: mathieudutour/github-tag-action@v4.2
uses: mathieudutour/github-tag-action@v4.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```

View File

@ -1,6 +1,6 @@
{
"name": "github-tag-action",
"version": "4.2.0",
"version": "4.3.0",
"private": true,
"description": "A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version.",
"main": "lib/main.js",

View File

@ -98,10 +98,12 @@ async function run() {
core.setOutput("previous_tag", tag);
}
// for some reason the commits start with a `'` on the CI so we ignore it
// for some reason the commits start and end with a `'` on the CI so we ignore it
const commits = logs
.split(SEPARATOR)
.map((x) => ({ message: x.trim().replace(/^'/g, "") }))
.map((x) => ({
message: x.trim().replace(/^'\n'/g, "").replace(/^'/g, ""),
}))
.filter((x) => !!x.message);
const bump = await analyzeCommits(
{},