Skip to content

Commit

Permalink
fix release pipeline (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju authored Sep 8, 2024
1 parent d7a76d4 commit af81008
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[email protected]'
BRANCH_NAME="update-version-${{ steps.gitversion.outputs.semVer }}"
Expand Down
9 changes: 5 additions & 4 deletions gitversion.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -14,7 +15,7 @@ branches:
feature:
label: "{BranchName}"
increment: Minor
regex: ^f(eature(s)?)?[\/-](?<BranchName>.+) # cSpell: ignore eature
regex: ^f(eature(s)?)?[\/-](?<BranchName>.+)
source-branches: ["main"]
hotfix:
label: fix
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit af81008

Please sign in to comment.