no log: Improved release exclude regex that could be fixing empty changes log issue.

This commit is contained in:
morpheus65535 2021-07-01 07:53:03 -04:00
parent cb623c3c26
commit f125845fcd
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"template": "./changelog-dev.hbs",
"ignoreCommitPattern": "^(Release|no log:).*",
"ignoreCommitPattern": "^(Release|no log:|Merge.remote-tracking).*",
"sortCommits": "date-desc"
}

View File

@ -63,7 +63,7 @@ jobs:
- name: Create Release (Conditional)
if: ${{ steps.check-ci.outputs.conclusion == 'success' }}
run: |
revision_count=$(git rev-list --invert-grep --regexp-ignore-case --extended-regexp --grep="^(Release|no log:).*" $(git describe --tags --abbrev=0)..HEAD --count)
revision_count=$(git rev-list --invert-grep --regexp-ignore-case --extended-regexp --grep="^(Release|no log:|Merge.remote-tracking).*" $(git describe --tags --abbrev=0)..HEAD --count)
if [[ $revision_count != 0 ]]; then
echo "**** Found $revision_count changes! Releasing... ****"
release-it --ci --increment prerelease --preRelease=beta