We’re using workflows to build and deploy our project, with two jobs named “build” and “deploy”. CircleCI approves GitHub PRs after the build step (which GitHub refers to as
ci/circleci: build) has passed.
If the build fails, the most natural step is to click the Rebuild button in the build summary page. However, this runs the build outside of the workflow, meaning GitHub picks up the build as
ci/circleci and so a passing build will not approve the PR. It also fails to trigger the deploy step.
Instead, we have to go to the workflow, and click Rerun Failed Jobs here.
It would be useful to have the Rebuild button re-trigger the workflow by default, or have Rebuild Workflow button in the build summary page, both to avoid accidentally triggering redundant builds, and to make it more obvious that the workflow needs kicking off again.