-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add a callable GitHub Action workflow that auto-restarts after a failure #3111
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.
There is some inconsistency, where github.rest.actions.createWorkflowDispatch is sometimes called with const result = await
and sometimes just called on it's own. I think one should be picked and used throughout
Ah, good spot. This was a relic from when I was debugging why the One thing that is not clear to me reading through the action's documentation is whether |
This workflow will restart a failed or cancelled workflow when it has only been run once.
This is dependent on actions/github-script#283, which will add the needed
.rest.actions.reRunWorkflowFailedJobs()
function added in octokit/plugin-rest-endpoint-methods.js@v5.14.0.Trac ticket: https://core.trac.wordpress.org/ticket/56407
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.