diff --git a/.github/allowed-actions.js b/.github/allowed-actions.js index b9d9f05dd8..d7977bd545 100644 --- a/.github/allowed-actions.js +++ b/.github/allowed-actions.js @@ -16,7 +16,7 @@ export default [ 'crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c', 'cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa', // uses github-actions-parser v0.23.0 'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911', // v3.0.2 - 'dawidd6/action-download-artifact@b9571484721e8187f1fd08147b497129f8972c74', // v2.14.0 + 'dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126', // v2.15.0 'docker://chinthakagodawita/autoupdate-action:v1', 'dorny/paths-filter@eb75a1edc117d3756a18ef89958ee59f9500ba58', 'github/codeql-action/analyze@v1', diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml index 099059c61c..a7e3086157 100644 --- a/.github/workflows/staging-deploy-pr.yml +++ b/.github/workflows/staging-deploy-pr.yml @@ -303,7 +303,7 @@ jobs: # Download the previously built "app.tar" - name: Download build artifact - uses: dawidd6/action-download-artifact@b9571484721e8187f1fd08147b497129f8972c74 + uses: dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126 with: workflow: ${{ github.event.workflow_run.workflow_id }} run_id: ${{ env.BUILD_ACTIONS_RUN_ID }} diff --git a/assets/images/help/settings/actions-review-workflow-rerun.png b/assets/images/help/settings/actions-review-workflow-rerun.png new file mode 100644 index 0000000000..e25da2ffa7 Binary files /dev/null and b/assets/images/help/settings/actions-review-workflow-rerun.png differ diff --git a/content/actions/managing-workflow-runs/index.md b/content/actions/managing-workflow-runs/index.md index 646976f009..73cfdc7857 100644 --- a/content/actions/managing-workflow-runs/index.md +++ b/content/actions/managing-workflow-runs/index.md @@ -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 diff --git a/content/actions/managing-workflow-runs/re-running-a-workflow.md b/content/actions/managing-workflow-runs/re-running-a-workflow.md deleted file mode 100644 index d0098bb989..0000000000 --- a/content/actions/managing-workflow-runs/re-running-a-workflow.md +++ /dev/null @@ -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 %}![Re-run checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down-updated.png){% else %}![Re-run checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down.png){% 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 run-id -``` - -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 %} diff --git a/content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md b/content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md new file mode 100644 index 0000000000..b19a667e10 --- /dev/null +++ b/content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md @@ -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** + ![Rerun checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down.png) +{% 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**. + ![Re-run checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down-updated.png) +{% 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 run-id +``` + +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. + ![Rerun workflow](/assets/images/help/settings/actions-review-workflow-rerun.png) +1. Click an entry to view its results. + +{% endif %}