Skip to content

Commit c79c262

Browse files
Sarah Edwardscdblucascosti
authored
re-running workflow jobs--with CLI (github#26127)
Co-authored-by: Cameron Booth <[email protected]> Co-authored-by: Lucas Costi <[email protected]>
1 parent a3a8b31 commit c79c262

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ If any jobs in a workflow run failed, you can re-run just the jobs that failed.
7676

7777
{% cli %}
7878

79-
You cannot re-run all failed jobs through the {% data variables.product.prodname_cli %} at this time. Instead, use the {% data variables.product.product_name %} web browser interface.
79+
To re-run failed jobs in a workflow run, use the `run rerun` subcommand with the `--failed` flag. Replace `run-id` with the ID of the run for which you want to re-run failed jobs. If you don't specify a `run-id`, {% data variables.product.prodname_cli %} returns an interactive menu for you to choose a recent failed run.
80+
81+
```shell
82+
gh run rerun <em>run-id</em> --failed
83+
```
8084

8185
{% endcli %}
8286

@@ -100,7 +104,11 @@ When you re-run a specific job in a workflow, a new workflow run will start for
100104

101105
{% cli %}
102106

103-
You cannot re-run a single job through the {% data variables.product.prodname_cli %} at this time. Instead, use the {% data variables.product.product_name %} browser interface.
107+
To re-run a specific job in a workflow run, use the `run rerun` subcommand with the `--job` flag. Replace `job-id` with the ID of the job that you want to re-run.
108+
109+
```shell
110+
gh run rerun --job <em>job-id</em>
111+
```
104112

105113
{% endcli %}
106114

0 commit comments

Comments
 (0)