{"id":20849455,"url":"https://github.com/int128/rerun-workflows-action","last_synced_at":"2026-02-28T19:03:00.221Z","repository":{"id":260600236,"uuid":"881775820","full_name":"int128/rerun-workflows-action","owner":"int128","description":"Rerun failed workflow runs by comment or label in GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-03-08T06:01:15.000Z","size":1205,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T07:17:59.551Z","etag":null,"topics":["github-actions","rerun"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/int128.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-01T07:48:36.000Z","updated_at":"2025-03-08T06:01:18.000Z","dependencies_parsed_at":"2024-11-01T10:17:20.414Z","dependency_job_id":"cbb42c24-f05e-4f95-8b10-abb8e512972c","html_url":"https://github.com/int128/rerun-workflows-action","commit_stats":null,"previous_names":["int128/rerun-workflows-action"],"tags_count":9,"template":false,"template_full_name":"int128/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Frerun-workflows-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Frerun-workflows-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Frerun-workflows-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Frerun-workflows-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/int128","download_url":"https://codeload.github.com/int128/rerun-workflows-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213982,"owners_count":20254902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","rerun"],"created_at":"2024-11-18T03:05:09.574Z","updated_at":"2026-02-14T18:07:20.961Z","avatar_url":"https://github.com/int128.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rerun-workflows-action [![ts](https://github.com/int128/rerun-workflows-action/actions/workflows/ts.yaml/badge.svg)](https://github.com/int128/rerun-workflows-action/actions/workflows/ts.yaml)\n\nThis action reruns the failed workflow runs.\n\n## Motivation\n\nGitHub does not provide an easy way to rerun the failed workflow runs.\nWe need to open each workflow run and click the **Re-run failed jobs** button.\n\n## Getting started\n\n### Trigger the rerun by a comment\n\nThe below example reruns the failed workflow runs when `/rerun` is commented on a pull request.\n\n```yaml\n# When `/rerun` is commented on a pull request, rerun the failed workflow runs.\nname: rerun-by-comment\n\non:\n  issue_comment:\n    types:\n      - created\n\njobs:\n  rerun-workflows:\n    if: github.event.issue.pull_request \u0026\u0026 github.event.comment.body == '/rerun'\n    runs-on: ubuntu-latest\n    permissions:\n      actions: write # To rerun workflows\n    steps:\n      - uses: int128/rerun-workflows-action@v0\n```\n\n### Trigger the rerun by a label\n\nThe below example reruns the failed workflow runs when `/rerun` label is added to a pull request.\n\n```yaml\n# When `/rerun` label is added to a pull request, rerun the failed workflow runs.\nname: rerun-by-label\n\non:\n  pull_request:\n    types:\n      - labeled\n\njobs:\n  rerun-workflows:\n    if: github.event.label.name == '/rerun'\n    runs-on: ubuntu-latest\n    timeout-minutes: 10\n    permissions:\n      actions: write # To rerun workflows\n      pull-requests: write # To remove label\n    steps:\n      - uses: int128/rerun-workflows-action@v0\n      - uses: int128/label-action@v1\n        with:\n          remove-labels: ${{ github.event.label.name }}\n```\n\n## Specification\n\nThis action finds the following statuses of workflow runs on the specified event and commit:\n\n- `failure`\n- `cancelled`\n\nFor example, there are the following workflow runs,\n\n- :white_check_mark: `microservice1-test`\n- :x: `microservice2-test`\n- :white_check_mark: `microservice3-test`\n- :x: `microservice4-test`\n- :white_check_mark: `microservice5-test`\n\nthis action reruns `microservice2-test` and `microservice4-test`.\n\n### Inputs\n\n| Name    | Default | Description                          |\n| ------- | ------- | ------------------------------------ |\n| `event` | -       | Event name of workflow runs to rerun |\n| `sha`   | -       | Commit SHA of workflow runs to rerun |\n\nIf `event` and `sha` are not specified, this action infers the event and commit as follows:\n\n- When this action is run on `pull_request` event, it finds the workflow runs triggered by `pull_request` event.\n- Otherwise, it does nothing.\n\n### Outputs\n\n| Name                  | Description                                                                |\n| --------------------- | -------------------------------------------------------------------------- |\n| `workflow-runs-count` | Number of workflow runs attempted to rerun                                 |\n| `rerun-success-count` | Number of workflow runs where the rerun request was accepted by GitHub API |\n| `rerun-failure-count` | Number of workflow runs where the rerun request failed                     |\n\n`rerun-success-count` means the rerun request was accepted by GitHub API.\nIt does not guarantee the rerun jobs will eventually succeed.\n\n`rerun-failure-count` means the rerun request was rejected by GitHub API or failed to be sent.\nGitHub API may reject the rerun request if the workflow run is too old.\n\nIf `rerun-failure-count` is greater than 0, this action shows a warning message but does not fail.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Frerun-workflows-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fint128%2Frerun-workflows-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Frerun-workflows-action/lists"}