-
Notifications
You must be signed in to change notification settings - Fork 6
Use "exit 1" to abort if branch-deploy fails #111
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
Conversation
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.
Pull request overview
This PR consolidates the smoketest workflow from two separate jobs into a single job to ensure error messages from branch-deploy are properly reported as PR comments. Instead of using job dependencies and outputs to control execution, it now uses an explicit check with exit 1 to abort the job if branch-deploy fails.
Key Changes:
- Merged
permission-checkandrun-testsjobs into a singleLinuxjob - Added an explicit shell script check that exits with error code 1 if
branch-deploydoesn't returntrue
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@JarLob has pointed out that this will cause the workflow to fail on almost every issue comment, which will generate a huge number of notifications. Closing. |
Separating into two separate jobs (#107) doesn't work well, because any error messages from the second job don't get reported back as comments on the issue.
This is a cruder solution that will hopefully work better.