Reviewing previous workflow runs (#21489)
Co-authored-by: Chris Patterson <chrispat@github.com> Co-authored-by: Jacob Wallraff <thyeggman@github.com>
This commit is contained in:
BIN
assets/images/help/settings/actions-review-workflow-rerun.png
Normal file
BIN
assets/images/help/settings/actions-review-workflow-rerun.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -14,7 +14,7 @@ versions:
|
||||
ghae: '*'
|
||||
children:
|
||||
- /manually-running-a-workflow
|
||||
- /re-running-a-workflow
|
||||
- /re-running-workflows-and-jobs
|
||||
- /canceling-a-workflow
|
||||
- /approving-workflow-runs-from-public-forks
|
||||
- /reviewing-deployments
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
---
|
||||
title: Re-running a workflow
|
||||
intro: You can re-run an instance of a workflow up to 30 days after the initial run.
|
||||
product: '{% data reusables.gated-features.actions %}'
|
||||
permissions: People with write permissions to a repository can re-run workflows in the repository.
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
---
|
||||
|
||||
{% data reusables.actions.enterprise-beta %}
|
||||
{% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
Re-running a workflow uses the same `GITHUB_SHA` (commit SHA) and `GITHUB_REF` (Git ref) of the original event that triggered the workflow run. You can re-run a workflow up to 30 days after the initial run.
|
||||
|
||||
{% include tool-switcher %}
|
||||
|
||||
{% webui %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.actions-tab %}
|
||||
{% data reusables.repositories.navigate-to-workflow %}
|
||||
{% data reusables.repositories.view-run %}
|
||||
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run all jobs**.{% ifversion fpt or ghes > 3.0 or ghae %}{% else %}{% endif %}
|
||||
|
||||
{% endwebui %}
|
||||
|
||||
{% cli %}
|
||||
|
||||
{% data reusables.cli.cli-learn-more %}
|
||||
|
||||
To re-run a failed workflow run, use the `run rerun` subcommand. Replace `run-id` with the ID of the failed run that you want to re-run. 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.
|
||||
|
||||
```shell
|
||||
gh run rerun <em>run-id</em>
|
||||
```
|
||||
|
||||
To view the progress of the workflow run, use the `run watch` subcommand and select the run from the interactive list.
|
||||
|
||||
```shell
|
||||
gh run watch
|
||||
```
|
||||
|
||||
{% endcli %}
|
||||
@@ -0,0 +1,72 @@
|
||||
---
|
||||
title: Re-running workflows and jobs
|
||||
intro: You can re-run a workflow run up to 30 days after its initial run.
|
||||
product: '{% data reusables.gated-features.actions %}'
|
||||
permissions: People with write permissions to a repository can re-run workflows in the repository.
|
||||
miniTocMaxHeadingLevel: 3
|
||||
redirect_from:
|
||||
- /actions/managing-workflow-runs/re-running-a-workflow
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
---
|
||||
|
||||
{% data reusables.actions.enterprise-beta %}
|
||||
{% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
## Re-running all the jobs in a workflow
|
||||
|
||||
Re-running a workflow uses the same `GITHUB_SHA` (commit SHA) and `GITHUB_REF` (Git ref) of the original event that triggered the workflow run. You can re-run a workflow for up to 30 days after the initial run.
|
||||
|
||||
{% include tool-switcher %}
|
||||
|
||||
{% webui %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.actions-tab %}
|
||||
{% data reusables.repositories.navigate-to-workflow %}
|
||||
{% data reusables.repositories.view-run %}
|
||||
{% ifversion fpt or ghes > 3.2 or ghae-issue-4721 %}
|
||||
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run all jobs**
|
||||

|
||||
{% endif %}
|
||||
{% ifversion ghes < 3.3 or ghae %}
|
||||
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run all jobs**.
|
||||

|
||||
{% endif %}
|
||||
|
||||
{% endwebui %}
|
||||
|
||||
{% cli %}
|
||||
|
||||
{% data reusables.cli.cli-learn-more %}
|
||||
|
||||
To re-run a failed workflow run, use the `run rerun` subcommand. Replace `run-id` with the ID of the failed run that you want to re-run. 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.
|
||||
|
||||
```shell
|
||||
gh run rerun <em>run-id</em>
|
||||
```
|
||||
|
||||
To view the progress of the workflow run, use the `run watch` subcommand and select the run from the interactive list.
|
||||
|
||||
```shell
|
||||
gh run watch
|
||||
```
|
||||
|
||||
{% endcli %}
|
||||
|
||||
{% ifversion fpt or ghes > 3.2 or ghae-issue-4721 %}
|
||||
### Reviewing previous workflow runs
|
||||
|
||||
You can view the results from your previous attempts at running a workflow. You can also view previous workflow runs using the API. For more information, see ["Get a workflow run"](/rest/reference/actions#get-a-workflow-run).
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.actions-tab %}
|
||||
{% data reusables.repositories.navigate-to-workflow %}
|
||||
{% data reusables.repositories.view-run %}
|
||||
1. Any previous run attempts are shown in the left pane.
|
||||

|
||||
1. Click an entry to view its results.
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user