-
Notifications
You must be signed in to change notification settings - Fork 295
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
🌱 github: still create a draft release on release notes generation failures #2878
🌱 github: still create a draft release on release notes generation failures #2878
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2878 +/- ##
==========================================
+ Coverage 64.14% 64.17% +0.03%
==========================================
Files 160 160
Lines 9367 9367
==========================================
+ Hits 6008 6011 +3
+ Misses 2903 2901 -2
+ Partials 456 455 -1 ☔ View full report in Codecov by Sentry. |
run: | | ||
make generate-release-notes | ||
make generate-release-notes || echo "Failed to generate release notes" >> _releasenotes/${{ env.RELEASE_TAG }}.md |
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.
I assume this redirects only the echo into the file? (nothing from the make target)
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.
oh well, let me check this, good point!
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.
Yes, only redirects stdout from the echo!
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.
❯ (echo "hello" && fail) || echo "failed" >> out.txt
hello
zsh: command not found: fail
❯ cat out.txt
failed
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.
Thx for checking!
/lgtm |
LGTM label has been added. Git tree hash: 2b9ef2b268432610bee590bbc95fe83e605da928
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Changes the github action which creates a draft release to not fail when generating release-notes failed.
Instead it will create the draft release with a note that the release-notes were not successfully generated.
This allows us to still manually generate the release notes and publish the release.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #