diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index b9b068f..04d86f7 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -77,6 +77,7 @@ jobs: - name: Commit and push if changed if: steps.check_dist_changes.outputs.dist_changed == 'true' run: | + git status git config --global user.name 'GitHub Action' git config --global user.email 'action@github.com' BRANCH_NAME="update-version-${{ steps.gitversion.outputs.semVer }}" diff --git a/gitversion.yml b/gitversion.yml index 06396dc..a074da4 100644 --- a/gitversion.yml +++ b/gitversion.yml @@ -1,8 +1,9 @@ +# cSpell: ignore eature atch hange reaking inor mode: ContinuousDelivery next-version: 0.0.1 -major-version-bump-message: '(breaking\schange|breaking)\b' -minor-version-bump-message: '(adds?|minor)\b' -patch-version-bump-message: '\s?(fix|patch)' +major-version-bump-message: '([Bb]reaking\s[Cc]hange|[Bb]reaking)\b' +minor-version-bump-message: '([Aa]dds?|[Mm]inor)\b' +patch-version-bump-message: '\s?([Ff]ix|[Pp]atch)' no-bump-message: '\+semver:\s?(none|skip)' assembly-informational-format: "{SemVer}+Sha.{Sha}.Date.{CommitDate}" branches: @@ -14,7 +15,7 @@ branches: feature: label: "{BranchName}" increment: Minor - regex: ^f(eature(s)?)?[\/-](?.+) # cSpell: ignore eature + regex: ^f(eature(s)?)?[\/-](?.+) source-branches: ["main"] hotfix: label: fix diff --git a/src/action.ts b/src/action.ts index f0c4af5..66d001c 100644 --- a/src/action.ts +++ b/src/action.ts @@ -23,7 +23,7 @@ export async function run() { } catch (error) { if (error instanceof Error) { if (!error.message.startsWith('Mock')) { - console.error('Error in run function:', error); + console.error('Error in run function: ', error); } core.setFailed(error.message);