Add a callable GitHub Action workflow that auto-restarts after a failure by desrosj · Pull Request #3111 · WordPress/wordpress-develop · GitHub
Skip to content

Add a callable GitHub Action workflow that auto-restarts after a failure#3111

Closed
desrosj wants to merge 6 commits into
WordPress:trunkfrom
desrosj:trac/56407
Closed

Add a callable GitHub Action workflow that auto-restarts after a failure#3111
desrosj wants to merge 6 commits into
WordPress:trunkfrom
desrosj:trac/56407

Conversation

@desrosj

@desrosj desrosj commented Aug 18, 2022

Copy link
Copy Markdown
Member

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.

@desrosj desrosj self-assigned this Aug 18, 2022
Comment thread .github/workflows/coding-standards.yml
Comment thread .github/workflows/failed-workflow.yml Outdated

@aaronjorbin aaronjorbin left a comment

Copy link
Copy Markdown
Member

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

@desrosj

desrosj commented Aug 24, 2022

Copy link
Copy Markdown
Member Author

@desrosj

desrosj commented Aug 26, 2022

Copy link
Copy Markdown
Member Author

@desrosj desrosj closed this Aug 26, 2022
@desrosj desrosj deleted the trac/56407 branch August 26, 2022 19:19
@desrosj desrosj restored the trac/56407 branch September 14, 2022 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants