Skip to content

Commit

Permalink
feat: Added utility to re-run failed jobs for failed workflows (#2968)
Browse files Browse the repository at this point in the history
## Description

As it happens from time to time that multiple workflows fail due to
temporary issues (e.g. PSGallery not responding, throttling, etc.), this
utility is intended to easy re-running the failed jobs for these
workflows.
By default, the utility focuses on the `main` branch and once it ran,
re-triggered all jobs, those jobs concluded, you can run the issue
managing workflow to close the corresponding issues if the re-run fix
the temporary issue.

Example excution
```pwsh
Invoke-FailedWorkflowsReRun
# VERBOSE: Fetching current GitHub workflows
# VERBOSE: Fetched [145] workflows
# VERBOSE: Runs to re-run failed jobs for [6/145]
# VERBOSE: Re-triggerung complete
```


## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [x] Update to CI Environment or utilities (Non-module affecting
changes)
- [ ] Azure Verified Module updates:
- [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [ ] Update to documentation
  • Loading branch information
AlexanderSehr authored Sep 12, 2024
1 parent 5e3198e commit ada1720
Showing 1 changed file with 415 additions and 0 deletions.
Loading

0 comments on commit ada1720

Please sign in to comment.