-
Notifications
You must be signed in to change notification settings - Fork 66
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
ci: improve release workflows to skip early #198
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,15 @@ on: | |
jobs: | ||
|
||
test-nodejs: | ||
# We just check the message of first commit as there is always just one commit because we squash into one before merging | ||
# "commits" contains array of objects where one of the properties is commit "message" | ||
# Release workflow will be skipped if release conventional commits are not used | ||
if: | | ||
startsWith( github.repository, 'asyncapi/' ) && | ||
(startsWith( github.event.commits[0].message , 'fix:' ) || | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unfortunately |
||
startsWith( github.event.commits[0].message, 'fix!:' ) || | ||
startsWith( github.event.commits[0].message, 'feat:' ) || | ||
startsWith( github.event.commits[0].message, 'feat!:' )) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unfortunately |
||
name: Test NodeJS release on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make sure workflow does not run on forks, to not confuse people
I already had few questions from folks asking why release is failing (but it was running on their forks)