-
Notifications
You must be signed in to change notification settings - Fork 30
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
New Release Process (Semi automatic way) #681
Conversation
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #681 +/- ##
=======================================
Coverage 78.22% 78.22%
=======================================
Files 65 65
Lines 5024 5024
=======================================
Hits 3930 3930
Misses 907 907
Partials 187 187
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Good job! |
jobs: | ||
release: | ||
if: | | ||
github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository | ||
&& github.event.pull_request.user.login == 'github-actions[bot]' && github.event.pull_request.user.type == 'Bot' |
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.
Can we also check if the source branch of the PR starts with releases/
? Maybe we use this bot account for more things in the future, and this workflow should only run on releases.
startsWith(github.event.pull_request.head.ref, 'releases/')
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.
Done!
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.
lgtm, nice work!
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
350d434
to
1b0df6d
Compare
This new process is as follows:
The release GitHub action will take place
This GH action will be triggered only when the PR that gets merged is from releases/*., the source and destination are the the same repository, and the author of the PR is a GitHub action.
And this workflow follows the regular process, created release on GH and create the tag (we don't need to create the tag manually anymore)
Also this will trigger the OLM publish but that work is on another PR. (#583)
@andreasgerstmayr @pavolloffay @frzifus @iblancasa Let me know what do you think.
PS. I'll update the RELEASE.md once this is accepted.