Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix release pipeline #24

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
} 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);

Check warning on line 26 in src/action.ts

View check run for this annotation

Codecov / codecov/patch

src/action.ts#L26

Added line #L26 was not covered by tests
}

core.setFailed(error.message);
Expand Down
Loading